Skip to content

Commit 2d9562e

Browse files
committed
refactor: extract SETUP_USAGE into const per review
1 parent 392b99e commit 2d9562e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/setup.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,13 +1601,12 @@ fn prompt_login_after_setup() -> Result<bool, GwsError> {
16011601
pub async fn run_setup(args: &[String]) -> Result<(), GwsError> {
16021602
// Handle --help / -h before any setup work (which requires gcloud).
16031603
if args.iter().any(|a| a == "--help" || a == "-h") {
1604-
println!(
1605-
"Usage: gws auth setup [options]\n\n\
1604+
const SETUP_USAGE: &str = "Usage: gws auth setup [options]\n\n\
16061605
Options:\n \
16071606
--project <id> Use a specific GCP project\n \
16081607
--login Run `gws auth login` after successful setup\n \
1609-
--dry-run Preview changes without making them"
1610-
);
1608+
--dry-run Preview changes without making them";
1609+
println!("{SETUP_USAGE}");
16111610
return Ok(());
16121611
}
16131612

0 commit comments

Comments
 (0)