@@ -5,9 +5,9 @@ use futures::future::join_all;
55use serde_json:: json;
66
77use crate :: api:: LinearClient ;
8+ use crate :: display_options;
89use crate :: output:: { print_json, OutputOptions } ;
910use crate :: text:: truncate;
10- use crate :: display_options;
1111
1212#[ derive( Subcommand ) ]
1313pub enum BulkCommands {
@@ -260,7 +260,10 @@ pub async fn handle(cmd: BulkCommands, output: &OutputOptions) -> Result<()> {
260260async fn bulk_update_state ( state : & str , issues : Vec < String > , output : & OutputOptions ) -> Result < ( ) > {
261261 if issues. is_empty ( ) {
262262 if output. is_json ( ) {
263- print_json ( & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) , & output. json ) ?;
263+ print_json (
264+ & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) ,
265+ & output. json ,
266+ ) ?;
264267 } else {
265268 println ! ( "No issues specified." ) ;
266269 }
@@ -298,7 +301,10 @@ async fn bulk_update_state(state: &str, issues: Vec<String>, output: &OutputOpti
298301async fn bulk_assign ( user : & str , issues : Vec < String > , output : & OutputOptions ) -> Result < ( ) > {
299302 if issues. is_empty ( ) {
300303 if output. is_json ( ) {
301- print_json ( & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) , & output. json ) ?;
304+ print_json (
305+ & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) ,
306+ & output. json ,
307+ ) ?;
302308 } else {
303309 println ! ( "No issues specified." ) ;
304310 }
@@ -351,7 +357,10 @@ async fn bulk_assign(user: &str, issues: Vec<String>, output: &OutputOptions) ->
351357async fn bulk_label ( label : & str , issues : Vec < String > , output : & OutputOptions ) -> Result < ( ) > {
352358 if issues. is_empty ( ) {
353359 if output. is_json ( ) {
354- print_json ( & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) , & output. json ) ?;
360+ print_json (
361+ & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) ,
362+ & output. json ,
363+ ) ?;
355364 } else {
356365 println ! ( "No issues specified." ) ;
357366 }
@@ -404,7 +413,10 @@ async fn bulk_label(label: &str, issues: Vec<String>, output: &OutputOptions) ->
404413async fn bulk_unassign ( issues : Vec < String > , output : & OutputOptions ) -> Result < ( ) > {
405414 if issues. is_empty ( ) {
406415 if output. is_json ( ) {
407- print_json ( & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) , & output. json ) ?;
416+ print_json (
417+ & json ! ( { "error" : "No issues specified" , "results" : [ ] } ) ,
418+ & output. json ,
419+ ) ?;
408420 } else {
409421 println ! ( "No issues specified." ) ;
410422 }
0 commit comments