From 52b594a167266d25b13690361231acd3e731a690 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Thu, 1 Sep 2022 18:49:11 -0600 Subject: [PATCH] apply: Run rustfmt --- src/command/apply.rs | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/src/command/apply.rs b/src/command/apply.rs index cf7b3a1..5ce2627 100644 --- a/src/command/apply.rs +++ b/src/command/apply.rs @@ -125,9 +125,11 @@ This is an experimental feature."#) pub fn subcommand() -> ClapCommand<'static> { let command = ClapCommand::new("apply") .about("Apply configurations on remote machines") - .arg(Arg::new("goal") - .help("Deployment goal") - .long_help(r#"The goal of the deployment. + .arg( + Arg::new("goal") + .help("Deployment goal") + .long_help( + r#"The goal of the deployment. Same as the targets for switch-to-configuration, with the following extra pseudo-goals: @@ -136,13 +138,22 @@ Same as the targets for switch-to-configuration, with the following extra pseudo - keys: Only upload the keys to the remote nodes `switch` is the default goal unless `--reboot` is passed, in which case `boot` is the default. -"#) - .default_value("switch") - .default_value_if("reboot", None, Some("boot")) - .default_value("switch") - .index(1) - .possible_values(&["build", "push", "switch", "boot", "test", "dry-activate", "keys"])) - ; +"#, + ) + .default_value("switch") + .default_value_if("reboot", None, Some("boot")) + .default_value("switch") + .index(1) + .possible_values(&[ + "build", + "push", + "switch", + "boot", + "test", + "dry-activate", + "keys", + ]), + ); let command = register_deploy_args(command); util::register_selector_args(command)