{"modulePath":"github.com/nerdalize/nerd","version":"v0.5.9","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Constants\n\n```go\nconst (\n\t//EnvConfigJSON can be used to pass the config file as a json encoded string\n\tEnvConfigJSON = \"NERD_CONFIG_JSON\"\n\n\t//EnvNerdProject can be used to set the nerd project\n\tEnvNerdProject = \"NERD_PROJECT\"\n)\n```\n\n```go\nconst (\n\t//OutputDirPermissions are the output directory's permissions.\n\tOutputDirPermissions = 0755\n\t//DownloadConcurrency is the amount of concurrent download threads.\n\tDownloadConcurrency = 10\n)\n```\n\n```go\nconst (\n\t//UploadConcurrency is the amount of concurrent upload threads.\n\tUploadConcurrency = 64\n)\n```\n\n## Variables\n\n```go\nvar (\n\t//SharedOptionsGroup are options shared by all commands\n\tSharedOptionsGroup = \"Other Options\"\n)\n```\n\n## Functions\n\n```go\nfunc CreateVersionFactory(version, commit string) cli.CommandFactory\n```\nCreateVersionFactory returns a factory method for the join command\n\n```go\nfunc DatasetDownloadFactory() (cli.Command, error)\n```\nDatasetDownloadFactory returns a factory method for the join command\n\n```go\nfunc DatasetFactory() (cli.Command, error)\n```\nDatasetFactory returns a factory method for the join command\n\n```go\nfunc DatasetListFactory() (cli.Command, error)\n```\nDatasetListFactory returns a factory method for the join command\n\n```go\nfunc DatasetUploadFactory() (cli.Command, error)\n```\nDatasetUploadFactory returns a factory method for the join command\n\n```go\nfunc ErrorCauser(err error) error\n```\nErrorCauser returns the error that is one level up in the error chain.\n\n```go\nfunc HandleError(err error) error\n```\nHandleError handles the way errors are presented to the user.\n\n```go\nfunc LoginFactory() (cli.Command, error)\n```\nLoginFactory returns a factory method for the join command\n\n```go\nfunc NewClient(c *conf.Config, session *conf.Session, outputter *format.Outputter) (*v1batch.Client, error)\n```\nNewClient creates a new batch Client.\n\n```go\nfunc ProgressBar(w io.Writer, total int64, progressCh \u003c-chan int64, doneCh chan\u003c- struct{})\n```\nProgressBar creates a new CLI progess bar and adds input from the progressCh to the bar.\n\n```go\nfunc ProjectExpelFactory() (cli.Command, error)\n```\nProjectExpelFactory returns a factory method for the join command\n\n```go\nfunc ProjectFactory() (cli.Command, error)\n```\nProjectFactory returns a factory method for the join command\n\n```go\nfunc ProjectListFactory() (cli.Command, error)\n```\nProjectListFactory returns a factory method for the join command\n\n```go\nfunc ProjectPlaceFactory() (cli.Command, error)\n```\nProjectPlaceFactory returns a factory method for the join command\n\n```go\nfunc ProjectSetFactory() (cli.Command, error)\n```\nProjectSetFactory returns a factory method for the join command\n\n```go\nfunc SecretCreateFactory() (cli.Command, error)\n```\nSecretCreateFactory returns a factory method for the secret create command\n\n```go\nfunc SecretDeleteFactory() (cli.Command, error)\n```\nSecretDeleteFactory returns a factory method for the secret delete command\n\n```go\nfunc SecretDescribeFactory() (cli.Command, error)\n```\nSecretDescribeFactory returns a factory method for the secret describe command\n\n```go\nfunc SecretFactory() (cli.Command, error)\n```\nSecretFactory returns a factory method for the secret command\n\n```go\nfunc SecretListFactory() (cli.Command, error)\n```\nSecretListFactory returns a factory method for the secret list command\n\n```go\nfunc TaskCreateFactory() (cli.Command, error)\n```\nTaskCreateFactory returns a factory method for the join command\n\n```go\nfunc TaskDescribeFactory() (cli.Command, error)\n```\nTaskDescribeFactory returns a factory method for the join command\n\n```go\nfunc TaskFactory() (cli.Command, error)\n```\nTaskFactory returns a factory method for the join command\n\n```go\nfunc TaskFailureFactory() (cli.Command, error)\n```\nTaskFailureFactory returns a factory method for the join command\n\n```go\nfunc TaskHeartbeatFactory() (cli.Command, error)\n```\nTaskHeartbeatFactory returns a factory method for the join command\n\n```go\nfunc TaskListFactory() (cli.Command, error)\n```\nTaskListFactory returns a factory method for the join command\n\n```go\nfunc TaskReceiveFactory() (cli.Command, error)\n```\nTaskReceiveFactory returns a factory method for the join command\n\n```go\nfunc TaskStopFactory() (cli.Command, error)\n```\nTaskStopFactory returns a factory method for the join command\n\n```go\nfunc TaskSuccessFactory() (cli.Command, error)\n```\nTaskSuccessFactory returns a factory method for the join command\n\n```go\nfunc UserPassProvider(ui cli.Ui) func() (string, string, error)\n```\nUserPassProvider prompts the username and password on stdin.\n\n```go\nfunc WorkerFactory() (cli.Command, error)\n```\nWorkerFactory returns a factory method for the join command\n\n```go\nfunc WorkerLogsFactory() (cli.Command, error)\n```\nWorkerLogsFactory returns a factory method for the join command\n\n```go\nfunc WorkloadDescribeFactory() (cli.Command, error)\n```\nWorkloadDescribeFactory returns a factory method for the join command\n\n```go\nfunc WorkloadDownloadFactory() (cli.Command, error)\n```\nWorkloadDownloadFactory returns a factory method for the join command\n\n```go\nfunc WorkloadFactory() (cli.Command, error)\n```\nWorkloadFactory returns a factory method for the join command\n\n```go\nfunc WorkloadListFactory() (cli.Command, error)\n```\nWorkloadListFactory returns a factory method for the join command\n\n```go\nfunc WorkloadStartFactory() (cli.Command, error)\n```\nWorkloadStartFactory returns a factory method for the join command\n\n```go\nfunc WorkloadStopFactory() (cli.Command, error)\n```\nWorkloadStopFactory returns a factory method for the join command\n\n```go\nfunc WorkloadWorkFactory() (cli.Command, error)\n```\nWorkloadWorkFactory returns a factory method for the join command\n\n## Types\n\n```go\ntype Chunker struct {\n\t// contains filtered or unexported fields\n}\n```\nChunker is a wrapper of the restic/chunker library, to make it compatible with the v1data.Chunker interface.\n\n```go\nfunc NewChunker(pol uint64, r io.Reader) *Chunker\n```\nNewChunker returns a new Chunker\n\n```go\nfunc (c *Chunker) Next() (data []byte, length uint, err error)\n```\nNext wraps the restic/chunker Next call.\n\n```go\ntype ConfOpts struct {\n\tConfigFile  func(string) `long:\"config-file\" default:\"\" default-mask:\"\" env:\"NERD_CONFIG_FILE\" description:\"Location of config file\"`\n\tSessionFile func(string) `long:\"session-file\" default:\"\" default-mask:\"\" env:\"NERD_SESSION_FILE\" description:\"Location of session file\"`\n\tOutputOpts\n}\n```\nConfOpts are the options related to config file and the way output is handled.\n\n```go\ntype Dataset struct {\n\t// contains filtered or unexported fields\n}\n```\nDataset command\n\n```go\nfunc (c Dataset) Description() string\n```\n\n```go\nfunc (cmd *Dataset) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Dataset) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Dataset) Options() *flags.Parser\n```\n\n```go\nfunc (c Dataset) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Dataset) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Dataset) Usage() string\n```\n\n```go\ntype DatasetList struct {\n\t// contains filtered or unexported fields\n}\n```\nDatasetList command\n\n```go\nfunc (c DatasetList) Description() string\n```\n\n```go\nfunc (cmd *DatasetList) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c DatasetList) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c DatasetList) Options() *flags.Parser\n```\n\n```go\nfunc (c DatasetList) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c DatasetList) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c DatasetList) Usage() string\n```\n\n```go\ntype Download struct {\n\t// contains filtered or unexported fields\n}\n```\nDownload command\n\n```go\nfunc (c Download) Description() string\n```\n\n```go\nfunc (cmd *Download) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Download) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Download) Options() *flags.Parser\n```\n\n```go\nfunc (c Download) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Download) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Download) Usage() string\n```\n\n```go\ntype Login struct {\n\t// contains filtered or unexported fields\n}\n```\nLogin command\n\n```go\nfunc (c Login) Description() string\n```\n\n```go\nfunc (cmd *Login) DoRun(args []string) error\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Login) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Login) Options() *flags.Parser\n```\n\n```go\nfunc (c Login) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Login) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Login) Usage() string\n```\n\n```go\ntype OutputOpts struct {\n\tDebug  func(bool)   `long:\"debug\" default:\"false\" optional:\"true\" optional-value:\"true\" description:\"Show debug output\" env:\"NERD_DEBUG\"`\n\tOutput func(string) `long:\"output\" default:\"pretty\" description:\"Format of the output\" choice:\"pretty\" choice:\"raw\" choice:\"json\"`\n}\n```\nOutputOpts are options that are related to CLI output.\n\n```go\ntype Project struct {\n\t// contains filtered or unexported fields\n}\n```\nProject command\n\n```go\nfunc (c Project) Description() string\n```\n\n```go\nfunc (cmd *Project) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Project) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (cmd *Project) HelpTemplate() string\n```\nHelpTemplate provides a template for the help command, which excludes the \"expel\" and \"place\" subcommands\n\n```go\nfunc (c Project) Options() *flags.Parser\n```\n\n```go\nfunc (c Project) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Project) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Project) Usage() string\n```\n\n```go\ntype ProjectExpel struct {\n\t// contains filtered or unexported fields\n}\n```\nProjectExpel command\n\n```go\nfunc (c ProjectExpel) Description() string\n```\n\n```go\nfunc (cmd *ProjectExpel) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c ProjectExpel) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c ProjectExpel) Options() *flags.Parser\n```\n\n```go\nfunc (c ProjectExpel) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c ProjectExpel) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c ProjectExpel) Usage() string\n```\n\n```go\ntype ProjectList struct {\n\t// contains filtered or unexported fields\n}\n```\nProjectList command\n\n```go\nfunc (c ProjectList) Description() string\n```\n\n```go\nfunc (cmd *ProjectList) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c ProjectList) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c ProjectList) Options() *flags.Parser\n```\n\n```go\nfunc (c ProjectList) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c ProjectList) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c ProjectList) Usage() string\n```\n\n```go\ntype ProjectPlace struct {\n\t// contains filtered or unexported fields\n}\n```\nProjectPlace command\n\n```go\nfunc (c ProjectPlace) Description() string\n```\n\n```go\nfunc (cmd *ProjectPlace) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c ProjectPlace) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c ProjectPlace) Options() *flags.Parser\n```\n\n```go\nfunc (c ProjectPlace) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c ProjectPlace) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c ProjectPlace) Usage() string\n```\n\n```go\ntype ProjectPlaceOpts struct {\n\tToken        string `long:\"token\" default:\"\" default-mask:\"\" description:\"placement that authenticates using JWT\"`\n\tUsername     string `long:\"username\" default:\"\" default-mask:\"\" description:\"username for placement that authenticates using username/password\"`\n\tPassword     string `long:\"password\" default:\"\" default-mask:\"\" description:\"password for placement that authenticates using username/password\"`\n\tInsecure     bool   `long:\"insecure\" default-mask:\"\" description:\"disable checking of server certificate\"`\n\tComputeUnits string `long:\"compute_units\" default:\"2\" description:\"default size of a project\"`\n}\n```\nProjectPlaceOpts describes command options\n\n```go\ntype ProjectSet struct {\n\t// contains filtered or unexported fields\n}\n```\nProjectSet command\n\n```go\nfunc (c ProjectSet) Description() string\n```\n\n```go\nfunc (cmd *ProjectSet) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c ProjectSet) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c ProjectSet) Options() *flags.Parser\n```\n\n```go\nfunc (c ProjectSet) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c ProjectSet) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c ProjectSet) Usage() string\n```\n\n```go\ntype Secret struct {\n\t// contains filtered or unexported fields\n}\n```\nSecret command\n\n```go\nfunc (c Secret) Description() string\n```\n\n```go\nfunc (cmd *Secret) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Secret) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Secret) Options() *flags.Parser\n```\n\n```go\nfunc (c Secret) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Secret) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Secret) Usage() string\n```\n\n```go\ntype SecretCreate struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretCreate command\n\n```go\nfunc (c SecretCreate) Description() string\n```\n\n```go\nfunc (cmd *SecretCreate) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c SecretCreate) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c SecretCreate) Options() *flags.Parser\n```\n\n```go\nfunc (c SecretCreate) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c SecretCreate) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c SecretCreate) Usage() string\n```\n\n```go\ntype SecretCreateOpts struct {\n\tUsername string `long:\"username\" default:\"\" default-mask:\"\" description:\"Username for Docker registry authentication\"`\n\tPassword string `long:\"password\" default:\"\" default-mask:\"\" description:\"Password for Docker registry authentication\"`\n\tType     string `long:\"type\" default:\"opaque\" default-mask:\"\" description:\"Type of secret to display\"`\n}\n```\nSecretCreateOpts describes the options to the SecretCreate command\n\n```go\ntype SecretDelete struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretDelete command\n\n```go\nfunc (c SecretDelete) Description() string\n```\n\n```go\nfunc (cmd *SecretDelete) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c SecretDelete) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c SecretDelete) Options() *flags.Parser\n```\n\n```go\nfunc (c SecretDelete) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c SecretDelete) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c SecretDelete) Usage() string\n```\n\n```go\ntype SecretDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretDescribe command\n\n```go\nfunc (c SecretDescribe) Description() string\n```\n\n```go\nfunc (cmd *SecretDescribe) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c SecretDescribe) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c SecretDescribe) Options() *flags.Parser\n```\n\n```go\nfunc (c SecretDescribe) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c SecretDescribe) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c SecretDescribe) Usage() string\n```\n\n```go\ntype SecretList struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretList command\n\n```go\nfunc (c SecretList) Description() string\n```\n\n```go\nfunc (cmd *SecretList) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c SecretList) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c SecretList) Options() *flags.Parser\n```\n\n```go\nfunc (c SecretList) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c SecretList) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c SecretList) Usage() string\n```\n\n```go\ntype SecretListOpts struct {\n\tType string `long:\"type\" default:\"all\" default-mask:\"\" description:\"Type of secret to display, defaults to all.\"`\n}\n```\nSecretListOpts describes the options to the SecretList command\n\n```go\ntype Task struct {\n\t// contains filtered or unexported fields\n}\n```\nTask command\n\n```go\nfunc (c Task) Description() string\n```\n\n```go\nfunc (cmd *Task) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Task) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (cmd *Task) HelpTemplate() string\n```\nHelpTemplate provides a template for the help command, which excludes the \"failure\", \"heartbeat\", \"receive\", and \"success\" subcommands\n\n```go\nfunc (c Task) Options() *flags.Parser\n```\n\n```go\nfunc (c Task) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Task) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Task) Usage() string\n```\n\n```go\ntype TaskCreate struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskCreate command\n\n```go\nfunc (c TaskCreate) Description() string\n```\n\n```go\nfunc (cmd *TaskCreate) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskCreate) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskCreate) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskCreate) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskCreate) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskCreate) Usage() string\n```\n\n```go\ntype TaskCreateOpts struct {\n\tEnv []string `long:\"env\" short:\"e\" description:\"environment variables to use\"`\n}\n```\nTaskCreateOpts describes command options\n\n```go\ntype TaskDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskDescribe command\n\n```go\nfunc (c TaskDescribe) Description() string\n```\n\n```go\nfunc (cmd *TaskDescribe) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskDescribe) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskDescribe) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskDescribe) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskDescribe) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskDescribe) Usage() string\n```\n\n```go\ntype TaskFailure struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskFailure command\n\n```go\nfunc (c TaskFailure) Description() string\n```\n\n```go\nfunc (cmd *TaskFailure) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskFailure) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskFailure) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskFailure) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskFailure) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskFailure) Usage() string\n```\n\n```go\ntype TaskHeartbeat struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskHeartbeat command\n\n```go\nfunc (c TaskHeartbeat) Description() string\n```\n\n```go\nfunc (cmd *TaskHeartbeat) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskHeartbeat) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskHeartbeat) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskHeartbeat) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskHeartbeat) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskHeartbeat) Usage() string\n```\n\n```go\ntype TaskList struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskList command\n\n```go\nfunc (c TaskList) Description() string\n```\n\n```go\nfunc (cmd *TaskList) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskList) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskList) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskList) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskList) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskList) Usage() string\n```\n\n```go\ntype TaskReceive struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskReceive command\n\n```go\nfunc (c TaskReceive) Description() string\n```\n\n```go\nfunc (cmd *TaskReceive) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskReceive) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskReceive) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskReceive) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskReceive) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskReceive) Usage() string\n```\n\n```go\ntype TaskStop struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskStop command\n\n```go\nfunc (c TaskStop) Description() string\n```\n\n```go\nfunc (cmd *TaskStop) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskStop) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskStop) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskStop) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskStop) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskStop) Usage() string\n```\n\n```go\ntype TaskSuccess struct {\n\t// contains filtered or unexported fields\n}\n```\nTaskSuccess command\n\n```go\nfunc (c TaskSuccess) Description() string\n```\n\n```go\nfunc (cmd *TaskSuccess) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c TaskSuccess) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c TaskSuccess) Options() *flags.Parser\n```\n\n```go\nfunc (c TaskSuccess) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c TaskSuccess) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c TaskSuccess) Usage() string\n```\n\n```go\ntype Upload struct {\n\t// contains filtered or unexported fields\n}\n```\nUpload command\n\n```go\nfunc (c Upload) Description() string\n```\n\n```go\nfunc (cmd *Upload) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Upload) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Upload) Options() *flags.Parser\n```\n\n```go\nfunc (c Upload) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Upload) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Upload) Usage() string\n```\n\n```go\ntype Version struct {\n\t// contains filtered or unexported fields\n}\n```\nVersion command\n\n```go\nfunc (c Version) Description() string\n```\n\n```go\nfunc (c Version) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Version) Options() *flags.Parser\n```\n\n```go\nfunc (cmd *Version) Run(args []string) int\n```\nRun is called by run and allows an error to be returned\n\n```go\nfunc (c Version) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Version) Usage() string\n```\n\n```go\ntype Worker struct {\n\t// contains filtered or unexported fields\n}\n```\nWorker command\n\n```go\nfunc (c Worker) Description() string\n```\n\n```go\nfunc (cmd *Worker) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Worker) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c Worker) Options() *flags.Parser\n```\n\n```go\nfunc (c Worker) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Worker) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Worker) Usage() string\n```\n\n```go\ntype WorkerLogs struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkerLogs command\n\n```go\nfunc (c WorkerLogs) Description() string\n```\n\n```go\nfunc (cmd *WorkerLogs) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkerLogs) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkerLogs) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkerLogs) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkerLogs) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkerLogs) Usage() string\n```\n\n```go\ntype Workload struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkload command\n\n```go\nfunc (c Workload) Description() string\n```\n\n```go\nfunc (cmd *Workload) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c Workload) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (cmd *Workload) HelpTemplate() string\n```\nHelpTemplate provides a template for the help command, which excludes the \"workload work\" command\n\n```go\nfunc (c Workload) Options() *flags.Parser\n```\n\n```go\nfunc (c Workload) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c Workload) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c Workload) Usage() string\n```\n\n```go\ntype WorkloadDescribe struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkloadDescribe command\n\n```go\nfunc (c WorkloadDescribe) Description() string\n```\n\n```go\nfunc (cmd *WorkloadDescribe) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkloadDescribe) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkloadDescribe) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkloadDescribe) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkloadDescribe) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkloadDescribe) Usage() string\n```\n\n```go\ntype WorkloadDownload struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkloadDownload command\n\n```go\nfunc (c WorkloadDownload) Description() string\n```\n\n```go\nfunc (cmd *WorkloadDownload) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkloadDownload) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkloadDownload) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkloadDownload) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkloadDownload) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkloadDownload) Usage() string\n```\n\n```go\ntype WorkloadList struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkloadList command\n\n```go\nfunc (c WorkloadList) Description() string\n```\n\n```go\nfunc (cmd *WorkloadList) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkloadList) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkloadList) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkloadList) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkloadList) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkloadList) Usage() string\n```\n\n```go\ntype WorkloadStart struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkloadStart command\n\n```go\nfunc (c WorkloadStart) Description() string\n```\n\n```go\nfunc (cmd *WorkloadStart) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkloadStart) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkloadStart) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkloadStart) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkloadStart) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkloadStart) Usage() string\n```\n\n```go\ntype WorkloadStartOpts struct {\n\tEnv          []string `long:\"env\" short:\"e\" description:\"Environment variables\"`\n\tInputDataset string   `long:\"input-dataset\" short:\"d\" description:\"Input dataset ID, will be available in /input in your container\"`\n\tInstances    int      `long:\"instances\" short:\"i\" default:\"1\" description:\"Number of working instances\"`\n\tPullSecret   string   `long:\"pull-secret\" short:\"p\" description:\"The pull secret will be used to fetch the private image\"`\n\tSize         uint64   `long:\"size\" short:\"s\" description:\"The amount of resources you want to use for your workload, in compute units.\"`\n}\n```\nWorkloadStartOpts describes command options\n\n```go\ntype WorkloadStop struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkloadStop command\n\n```go\nfunc (c WorkloadStop) Description() string\n```\n\n```go\nfunc (cmd *WorkloadStop) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkloadStop) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkloadStop) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkloadStop) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkloadStop) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkloadStop) Usage() string\n```\n\n```go\ntype WorkloadWork struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkloadWork command\n\n```go\nfunc (c WorkloadWork) Description() string\n```\n\n```go\nfunc (cmd *WorkloadWork) DoRun(args []string) (err error)\n```\nDoRun is called by run and allows an error to be returned\n\n```go\nfunc (c WorkloadWork) Help() string\n```\nWill write help text for when a user uses --help, it automatically renders all option groups of the flags.Parser (augmented with default values). It will show an extended help message if it is not empty, else it shows the synopsis.\n\n```go\nfunc (c WorkloadWork) Options() *flags.Parser\n```\n\n```go\nfunc (c WorkloadWork) Run(args []string) int\n```\nRun wraps a signature that allows returning an error type and parses the arguments for the flags package. If flag parsing fails it sets the exit code to 127, if the command implementation returns a non-nil error the exit code is 1\n\n```go\nfunc (c WorkloadWork) Synopsis() string\n```\nShort explanation of the command as passed in the struction initialization\n\n```go\nfunc (c WorkloadWork) Usage() string\n```\n\n```go\ntype WorkloadWorkOpts struct {\n\tEntrypointJSONB64 string `long:\"entrypoint-json-base64\" default:\"W10=\" description:\"Work entrypoint, first json and then base64 encoded.\"`\n\tCmdJSONB64        string `long:\"cmd-json-base64\" default:\"W10=\" description:\"Work cmd, first json and then base64 encoded.\"`\n\tOutputDir         string `long:\"output-dir\" default:\"\" default-mask:\"\" description:\"When set, data in --output-dir will be uploaded after each task run.\"`\n}\n```\nWorkloadWorkOpts describes command options\n\n","path":"github.com/nerdalize/nerd/command","name":"command","synopsis":"","isRedistributable":true}
