MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / addNoWaitFlag

Function addNoWaitFlag

internal/cli/cli_helpers.go:590–592  ·  view source on GitHub ↗

addNoWaitFlag adds a --no-wait flag to cmd for task-producing commands.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

588
589// addNoWaitFlag adds a --no-wait flag to cmd for task-producing commands.
590func 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.
595func getNoWait(cmd *cobra.Command) bool {

Callers 9

newStorageDownloadURLCmdFunction · 0.85
newStorageDownloadOCICmdFunction · 0.85
newStorageRestoreCmdFunction · 0.85
newGuestsDeleteCmdFunction · 0.85
newGuestsCreateVMCmdFunction · 0.85
newGuestsCreateLXCCmdFunction · 0.85
newGuestsMigrateCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected