Skip to content

Commit d4f2f5e

Browse files
committed
edit
1 parent c12b42c commit d4f2f5e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

pkg/cmd/task/wait/wait.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import (
1616
)
1717

1818
const (
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

2727
type 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

Comments
 (0)