From 8eead2a82d58d72435f6f2ae09e90c1dca51538f Mon Sep 17 00:00:00 2001 From: Carl Tashian Date: Tue, 13 Apr 2021 15:54:42 -0700 Subject: [PATCH] Switch to --verbose --- command/ssh/checkHost.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/command/ssh/checkHost.go b/command/ssh/checkHost.go index 0b29ee38..53f3740b 100644 --- a/command/ssh/checkHost.go +++ b/command/ssh/checkHost.go @@ -25,11 +25,11 @@ func checkHostCommand() cli.Command { Usage: "checks if a certificate has been issued for a host", UsageText: `**step ssh check-host** [**--ca-url**=] [**--root**=] -[**--offline**] [**--ca-config**=] [**--quiet**]`, +[**--offline**] [**--ca-config**=] [**--verbose,-v**]`, Description: `**step ssh check-host** checks if a certificate has been issued for a host. -This command prints "true" and returns a zero exit status if the host has a certificate. -Otherwise, it prints "false" and returns 1. +This command returns a zero exit status if the host has a certificate. +Otherwise, it returns 1. ## POSITIONAL ARGUMENTS @@ -48,15 +48,15 @@ $ step ssh check-host internal.smallstep.com flags.Offline, flags.CaConfig, cli.BoolFlag{ - Name: "quiet", - Usage: `Silently return an exit code.`, + Name: "verbose, v", + Usage: `Return "true" or "false" in the terminal.`, }, }, } } func checkHostAction(ctx *cli.Context) error { - isQuiet := ctx.Bool("quiet") + isVerbose := ctx.Bool("verbose") if err := errs.NumberOfArguments(ctx, 1); err != nil { return err @@ -102,7 +102,7 @@ func checkHostAction(ctx *cli.Context) error { "error checking ssh host eligibility") } - if !isQuiet { + if isVerbose { fmt.Println(resp.Exists) } if !resp.Exists {