command

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Command set

View Source
var DeleteCommand = cli.Command{
	Name:      "delete",
	Usage:     `Deletes a job`,
	ArgsUsage: `<job_id...>`,
	Action:    deleteAction,
	Flags: []cli.Flag{
		addressFlag,
	},
}
View Source
var InfoCommand = cli.Command{
	Name:      "info",
	Usage:     `Displays a job detail`,
	ArgsUsage: `<job_id>`,
	Action:    infoAction,
	Flags: []cli.Flag{
		addressFlag,
	},
}
View Source
var ListCommand = cli.Command{
	Name:      "list",
	Usage:     `Lists jobs`,
	ArgsUsage: `[<job_id...>]`,
	Action:    listAction,
	Flags: []cli.Flag{
		addressFlag,
		cli.BoolFlag{
			Name:  "quiet, q",
			Usage: "Only display IDs",
		},
		cli.StringFlag{
			Name:  "name, n",
			Usage: "Specifies a regular expression `STRING` to filter the jobs with job's name",
		},
		cli.StringFlag{
			Name:  "term, t",
			Usage: "Specifies a regular expression `STRING` to filter the jobs with job's name, comment, url or status",
		},
		cli.BoolFlag{
			Name:  "reverse, r",
			Usage: "Sort by descending ID.",
		},
		cli.Uint64Flag{
			Name:  "begin, b",
			Usage: "Load the jobs from `ID`.",
		},
		cli.IntFlag{
			Name:  "limit, l",
			Usage: "Only display `N` job(s).",
		},
		cli.BoolFlag{
			Name:  "detail, d",
			Usage: "Display detail info.",
		},
		cli.StringFlag{
			Name:  "status, s",
			Usage: "Specifies `STATUS` to filter the jobs with job's status ('running|waiting|canceling|failure|success|canceled|unfinished|unknown')",
		},
	},
}
View Source
var PushCommand = cli.Command{
	Name:  "push",
	Usage: "Pushes a new job.",
	Description: `Pushes a new job.
If you specify '-', it will use stdin as a job JSON .`,
	ArgsUsage: `<-|json_file...>`,
	Action:    pushAction,
	Flags: []cli.Flag{
		addressFlag,
	},
}
View Source
var RestartCommand = cli.Command{
	Name:      "restart",
	Usage:     `Restarts a job`,
	ArgsUsage: `<job_id...>`,
	Action:    restartAction,
	Flags: []cli.Flag{
		addressFlag,
		cli.BoolFlag{
			Name:  "copy, c",
			Usage: "Restarts the copied job instead of updating the existed job",
		},
	},
}
View Source
var ServeCommand = cli.Command{
	Name:   "serve",
	Usage:  "Starts the HQ server process",
	Action: serverAction,
	Flags: []cli.Flag{
		configFileFlag,
		logLevelFlag,
	},
}
View Source
var StatsCommand = cli.Command{
	Name:   "stats",
	Usage:  "Displays the HQ server statistics.",
	Action: statsAction,
	Flags: []cli.Flag{
		addressFlag,
	},
}
View Source
var StopCommand = cli.Command{
	Name:      "stop",
	Usage:     `Stops a job`,
	ArgsUsage: `<job_id...>`,
	Action:    stopAction,
	Flags: []cli.Flag{
		addressFlag,
	},
}

Functions

This section is empty.

Types

type LogLevelSetter

type LogLevelSetter interface {
	SetLogLevel(string)
}

Jump to

Keyboard shortcuts

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