addNoWaitFlag adds a --no-wait flag to cmd for task-producing commands.
(cmd *cobra.Command)
| 588 | |
| 589 | // addNoWaitFlag adds a --no-wait flag to cmd for task-producing commands. |
| 590 | func addNoWaitFlag(cmd *cobra.Command) { |
| 591 | cmd.Flags().Bool("no-wait", false, "Return the task UPID immediately without waiting for completion") |
| 592 | } |
| 593 | |
| 594 | // getNoWait reads the --no-wait flag from cmd. |
| 595 | func getNoWait(cmd *cobra.Command) bool { |
no outgoing calls
no test coverage detected