cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogWriter io.Writer = os.Stderr

Functions

func Parse

func Parse(args []string) error

Types

type BoshConfig

type BoshConfig struct {
	Config commander.Config
}

func (*BoshConfig) UnmarshalFlag

func (a *BoshConfig) UnmarshalFlag(data string) error

type BrdCommand

type BrdCommand struct {
	ManifestArg     ManifestArg `positional-args:"true" required:"1"`
	VarKVs          []string    `long:"var"             short:"v"       value-name:"VAR=VALUE"     description:"Set variable"`
	VarFiles        []string    `long:"var-file"                        value-name:"VAR=PATH"      description:"Set variable to file contents"`
	VarsFiles       []string    `long:"vars-file"       short:"l"       value-name:"PATH"          description:"Load variables from a YAML file"`
	Output          string      `` /* 134-byte string literal not displayed */
	VarsEnvs        []string    `` /* 155-byte string literal not displayed */
	OpsFiles        []string    `long:"ops-file"        short:"o"       value-name:"PATH"          description:"Load manifest operations from a YAML file"`
	Parallel        int         `long:"parallel"        short:"p"       value-name:"PARALLEL"      description:"Concurrent download at same time"`
	Path            string      `` /* 130-byte string literal not displayed */
	VarErrors       bool        `` /* 129-byte string literal not displayed */
	SkipInsecure    bool        `long:"skip-insecure"   short:"k"                                  description:"Skip insecure ssl"`
	VarErrorsUnused bool        `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BrdCommand) Execute

func (c *BrdCommand) Execute(_ []string) error

type CommanderCommand

type CommanderCommand struct {
	*commander.Script
	BoshConfig   BoshConfig `long:"config"                                  description:"Config file path" env:"BOSH_CONFIG" default:"~/.bosh/config"`
	ScriptYml    ScriptYml  `long:"file" short:"f"        value-name:"PATH" description:"Path to a script in yml format (use - to load file from stdin)"`
	Environments []string   `long:"environment" short:"e" required:"true"   description:"Director environment name or URL"`
	Username     string     `long:"username" short:"u"                      description:"Username to use to connect to director"`
	Password     string     `long:"password" short:"p"                      description:"Password to use to connect to director"`

	GwDisable        bool   `long:"gw-disable"                              description:"Disable usage of gateway connection" env:"BOSH_GW_DISABLE"`
	GwUsername       string `long:"gw-user"                                 description:"Username for gateway connection" env:"BOSH_GW_USER"`
	GwHost           string `long:"gw-host"                                 description:"Host for gateway connection" env:"BOSH_GW_HOST"`
	GwPrivateKeyPath string `` /* 126-byte string literal not displayed */

	Store string `long:"store"                 value-name:"PATH" description:"Store script in yml format at a path (- write it to stdout)"`
}

func (*CommanderCommand) Execute

func (c *CommanderCommand) Execute(_ []string) error

type Job

type Job struct {
	// contains filtered or unexported fields
}

type Manifest

type Manifest struct {
	Bytes []byte
}

func (*Manifest) UnmarshalFlag

func (a *Manifest) UnmarshalFlag(data string) error

type ManifestArg

type ManifestArg struct {
	Manifest Manifest `positional-arg-name:"PATH" description:"Path to a template which could be interpolated (use - to load manifest from stdin)"`
}

type Options

type Options struct {
	// Example of verbosity with level
	Verbose bool `short:"v" long:"verbose" description:"Verbose output"`
}

type ScriptYml

type ScriptYml struct {
	Script *commander.Script `no-flag:"true"`
}

func (*ScriptYml) UnmarshalFlag

func (a *ScriptYml) UnmarshalFlag(data string) error

type ScriptYmlArg

type ScriptYmlArg struct {
	ScriptYml ScriptYml ` description:"Path to a script in yml format (use - to load file from stdin)"`
}

Jump to

Keyboard shortcuts

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