taskstatus

package
v0.0.0-...-f3737aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UsageText = "gomox [-w] taskstatus <UPID>"

Variables

View Source
var Command = &cli.Command{
	Name:      "taskstatus",
	Usage:     "Get the status of a given task, by UPID",
	UsageText: UsageText,
	Action:    taskStatusCmd,
	Flags: []cli.Flag{
		&cli.IntFlag{
			Name:     "timeout",
			Category: "wait",
			Usage:    "Wait up to `TIMEOUT` seconds for task completion",

			Aliases: []string{"s"},
		},
		&cli.IntFlag{
			Name:     "interval",
			Category: "wait",
			Usage:    "Update every `INTERVAL` seconds.",
			Value:    1,
			Aliases:  []string{"i"},
		},
	},
}

Functions

func WaitForCliTask

func WaitForCliTask(c *cli.Context, task *proxmox.Task) error

WaitForCliTask waits for `task` to complete

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL