@@ -16,12 +16,12 @@ import (
1616)
1717
1818const (
19- FlagTimeout = "timeout"
20- FlagPollingInterval = "polling -interval"
21- FlagCancelOnTimeout = "cancel-on-timeout"
22- FlagProgress = "progress"
23- DefaultTimeout = 600
24- DefaultPollingInterval = 10
19+ FlagTimeout = "timeout"
20+ FlagPollInterval = "poll -interval"
21+ FlagCancelOnTimeout = "cancel-on-timeout"
22+ FlagProgress = "progress"
23+ DefaultTimeout = 600
24+ DefaultPollInterval = 10
2525)
2626
2727type WaitOptions struct {
@@ -78,8 +78,8 @@ func NewCmdWait(f factory.Factory) *cobra.Command {
7878
7979 flags := cmd .Flags ()
8080 flags .IntVar (& timeout , FlagTimeout , DefaultTimeout , "Time in seconds to wait for the tasks to complete" )
81- flags .IntVarP (& pollInterval , FlagPollingInterval , "" , DefaultPollingInterval , "Polling interval in seconds to check task status during wait" )
82- flags .BoolVarP (& cancelOnTimeout , FlagCancelOnTimeout , "" , false , "Cancel the tasks if the wait timeout is reached" )
81+ flags .IntVar (& pollInterval , FlagPollInterval , DefaultPollInterval , "Polling interval in seconds to check task status during wait" )
82+ flags .BoolVar (& cancelOnTimeout , FlagCancelOnTimeout , false , "Cancel the tasks if the wait timeout is reached" )
8383 flags .BoolVar (& showProgress , FlagProgress , false , "Show detailed progress of the tasks" )
8484
8585 return cmd
0 commit comments