Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Download       DownloadCmd       `command:"download" description:"For downloading an artifact"`
	UploadRelease  UploadReleaseCmd  `command:"upload-release" description:"For uploading a release to BOSH"`
	UploadStemcell UploadStemcellCmd `command:"upload-stemcell" description:"For uploading a stemcell to BOSH"`
}

func New

func New(app *cmdopts.Opts) *Cmd

type DownloadCmd

type DownloadCmd struct {
	clicommon.DownloadCmd `no-flag:"true"`

	Args DownloadCmdArgs `positional-args:"true" required:"true"`
}

func (*DownloadCmd) Execute

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

type DownloadCmdArgs

type DownloadCmdArgs struct {
	Metalink  string  `positional-arg-name:"PATH" description:"Path to the metalink file"`
	TargetDir *string `positional-arg-name:"TARGET-DIR" description:"Directory to download files (default: .)"`
}

type UploadReleaseCmd

type UploadReleaseCmd struct {
	clicommon.UploadReleaseCmd

	Name     string `long:"name" description:"Release name"`
	Version  string `long:"version" description:"Release version"`
	Stemcell string `long:"stemcell" description:"Compiled release stemcell (os/version format)"`

	Args UploadReleaseCmdArgs `positional-args:"true" required:"true"`
}

func (*UploadReleaseCmd) Execute

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

type UploadReleaseCmdArgs

type UploadReleaseCmdArgs struct {
	Metalink string `positional-arg-name:"PATH" description:"Path to the metalink file"`
}

type UploadStemcellCmd

type UploadStemcellCmd struct {
	clicommon.UploadStemcellCmd

	Name    string `long:"name" description:"Stemcell name"`
	Version string `long:"version" description:"Stemcell version"`

	Args UploadStemcellCmdArgs `positional-args:"true" required:"true"`
}

func (*UploadStemcellCmd) Execute

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

type UploadStemcellCmdArgs

type UploadStemcellCmdArgs struct {
	Metalink string `positional-arg-name:"PATH" description:"Path to the metalink file"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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