mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-18 22:48:57 +02:00
spf13/cobra: don't use PersistentFlags() (#319)
This commit is contained in:
@@ -28,11 +28,11 @@ func newSSHVMCommand() *cobra.Command {
|
||||
RunE: runSSHVM,
|
||||
}
|
||||
|
||||
command.PersistentFlags().StringVarP(&username, "username", "u", "",
|
||||
command.Flags().StringVarP(&username, "username", "u", "",
|
||||
"SSH username")
|
||||
command.PersistentFlags().StringVarP(&password, "password", "p", "",
|
||||
command.Flags().StringVarP(&password, "password", "p", "",
|
||||
"SSH password")
|
||||
command.PersistentFlags().Uint16VarP(&wait, "wait", "t", 60,
|
||||
command.Flags().Uint16VarP(&wait, "wait", "t", 60,
|
||||
"Amount of seconds to wait for the VM to start running if it's not running already")
|
||||
|
||||
return command
|
||||
|
||||
Reference in New Issue
Block a user