cli

package
v0.1.0-alpha.1a Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TorcxImageListV0 = "torcx-image-list-v0"
)
View Source
const (
	// TorcxProfileListV0 is the JSON kind identifier for a profile list
	TorcxProfileListV0 = "torcx-profile-list-v0"
)

Variables

View Source
var (
	// TorcxGenCmd is the top-level cobra command for `torcx-generator`
	TorcxGenCmd = &cobra.Command{
		Use:          "torcx-generator",
		RunE:         runGenerator,
		SilenceUsage: true,
	}
)

Functions

func Init

func Init() error

Init initializes the CLI environment for torcx

Types

type GlobalCfg

type GlobalCfg struct {
}

GlobalCfg is for global CLI state

var (
	// TorcxCmd is the top-level cobra command for `torcx`
	TorcxCmd = &cobra.Command{
		Use:           "torcx",
		SilenceUsage:  true,
		SilenceErrors: true,
	}

	// TorcxCliCfg holds global CLI status available to all subcommands
	TorcxCliCfg GlobalCfg
)

type ImageList

type ImageList struct {
	Kind  string       `json:"kind"`
	Value []imageEntry `json:"value"`
}

type ProfileList

type ProfileList struct {
	Kind  string      `json:"kind"`
	Value profileList `json:"value"`
}

ProfileList is the JSON container for profile list output

Jump to

Keyboard shortcuts

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