spf13/cobra: don't use PersistentFlags() (#319)

This commit is contained in:
Nikolay Edigaryev
2025-05-26 19:58:37 +04:00
committed by GitHub
parent 3a05fc71ae
commit 76f0672759
12 changed files with 59 additions and 59 deletions
+3 -3
View File
@@ -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