(cmd *cobra.Command, wait *kube.WaitStrategy)
| 57 | } |
| 58 | |
| 59 | func AddWaitFlag(cmd *cobra.Command, wait *kube.WaitStrategy) { |
| 60 | cmd.Flags().Var( |
| 61 | newWaitValue(kube.HookOnlyStrategy, wait), |
| 62 | "wait", |
| 63 | "wait until resources are ready (up to --timeout). Use '--wait' alone for 'watcher' strategy, or specify one of: 'watcher', 'hookOnly', 'legacy'. Default when flag is omitted: 'hookOnly'.", |
| 64 | ) |
| 65 | cmd.Flags().Lookup("wait").NoOptDefVal = string(kube.StatusWatcherStrategy) |
| 66 | } |
| 67 | |
| 68 | type waitValue kube.WaitStrategy |
| 69 |
no test coverage detected
searching dependent graphs…