@@ -192,7 +192,7 @@ impl OperatorArgs {
192192async fn list_cmd ( args : & OperatorListArgs , cli : & Cli ) -> Result < String , CmdError > {
193193 debug ! ( "Listing operators" ) ;
194194 Span :: current ( ) . pb_set_style (
195- & ProgressStyle :: with_template ( "{spinner} Fetching operator information" ) . unwrap ( ) ,
195+ & ProgressStyle :: with_template ( "{spinner} Fetching operator information" ) . expect ( "This is a valid progress template" )
196196 ) ;
197197
198198 // Build map which maps artifacts to a chart source
@@ -252,7 +252,7 @@ async fn list_cmd(args: &OperatorListArgs, cli: &Cli) -> Result<String, CmdError
252252async fn describe_cmd ( args : & OperatorDescribeArgs , cli : & Cli ) -> Result < String , CmdError > {
253253 debug ! ( operator_name = %args. operator_name, "Describing operator" ) ;
254254 Span :: current ( ) . pb_set_style (
255- & ProgressStyle :: with_template ( "{spinner} Fetching operator information" ) . unwrap ( ) ,
255+ & ProgressStyle :: with_template ( "{spinner} Fetching operator information" ) . expect ( "This is a valid progress template" )
256256 ) ;
257257
258258 // Build map which maps artifacts to a chart source
@@ -314,7 +314,7 @@ async fn describe_cmd(args: &OperatorDescribeArgs, cli: &Cli) -> Result<String,
314314async fn install_cmd ( args : & OperatorInstallArgs , cli : & Cli ) -> Result < String , CmdError > {
315315 info ! ( "Installing operator(s)" ) ;
316316 Span :: current ( )
317- . pb_set_style ( & ProgressStyle :: with_template ( "{spinner} Installing operator(s)" ) . unwrap ( ) ) ;
317+ . pb_set_style ( & ProgressStyle :: with_template ( "{spinner} Installing operator(s)" ) . expect ( "This is a valid progress template" ) ) ;
318318
319319 args. local_cluster
320320 . install_if_needed ( )
@@ -338,7 +338,7 @@ async fn install_cmd(args: &OperatorInstallArgs, cli: &Cli) -> Result<String, Cm
338338 . context ( HelmSnafu ) ?;
339339
340340 info ! ( %operator, "Installed operator" ) ;
341- indicatif_println ! ( "Installed {} operator" , operator ) ;
341+ indicatif_println ! ( "Installed {operator } operator" ) ;
342342 }
343343
344344 let mut result = cli. result ( ) ;
@@ -365,7 +365,7 @@ async fn install_cmd(args: &OperatorInstallArgs, cli: &Cli) -> Result<String, Cm
365365fn uninstall_cmd ( args : & OperatorUninstallArgs , cli : & Cli ) -> Result < String , CmdError > {
366366 info ! ( "Uninstalling operator(s)" ) ;
367367 Span :: current ( )
368- . pb_set_style ( & ProgressStyle :: with_template ( "{spinner} Uninstalling operator(s)" ) . unwrap ( ) ) ;
368+ . pb_set_style ( & ProgressStyle :: with_template ( "{spinner} Uninstalling operator(s)" ) . expect ( "This is a valid progress template" ) ) ;
369369
370370 for operator in & args. operators {
371371 operator
@@ -397,7 +397,7 @@ fn uninstall_cmd(args: &OperatorUninstallArgs, cli: &Cli) -> Result<String, CmdE
397397fn installed_cmd ( args : & OperatorInstalledArgs , cli : & Cli ) -> Result < String , CmdError > {
398398 info ! ( "Listing installed operators" ) ;
399399 Span :: current ( ) . pb_set_style (
400- & ProgressStyle :: with_template ( "{spinner} Fetching operator information" ) . unwrap ( ) ,
400+ & ProgressStyle :: with_template ( "{spinner} Fetching operator information" ) . expect ( "This is a valid progress template" )
401401 ) ;
402402
403403 type ReleaseList = IndexMap < String , Release > ;
0 commit comments