|
|
|
@ -53,6 +53,11 @@ func init() {
|
|
|
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func exit(code int) {
|
|
|
|
|
ui.Reset()
|
|
|
|
|
os.Exit(code)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// appHelpTemplate contains the modified template for the main app
|
|
|
|
|
var appHelpTemplate = `## NAME
|
|
|
|
|
**{{.HelpName}}** -- {{.Usage}}
|
|
|
|
@ -93,7 +98,6 @@ Please send us a sentence or two, good or bad: **feedback@smallstep.com** or htt
|
|
|
|
|
func main() {
|
|
|
|
|
// Initialize windows terminal
|
|
|
|
|
ui.Init()
|
|
|
|
|
defer ui.Reset()
|
|
|
|
|
|
|
|
|
|
// Override global framework components
|
|
|
|
|
cli.VersionPrinter = func(c *cli.Context) {
|
|
|
|
@ -169,8 +173,10 @@ $ step-ca $STEPPATH/config/ca.json --password-file ./password.txt
|
|
|
|
|
} else {
|
|
|
|
|
fmt.Fprintln(os.Stderr, err)
|
|
|
|
|
}
|
|
|
|
|
os.Exit(1)
|
|
|
|
|
exit(1)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
exit(0)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func flagValue(f cli.Flag) reflect.Value {
|
|
|
|
|