cmd

package
v1.1.0-alpha-8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CommitHash represents the Git commit hash at built time
	CommitHash string
	// BuildDate represents the date when this tool suite was built
	BuildDate string
)
View Source
var CopyCmd = &cobra.Command{
	Use:   "copy",
	Short: "Copy a zero-os resource",
}

CopyCmd represents the copy subcommand

View Source
var DeleteCmd = &cobra.Command{
	Use:   "delete",
	Short: "Delete a zero-os resource",
}

DeleteCmd represents the delete subcommand

View Source
var ExportCmd = &cobra.Command{
	Use:   "export",
	Short: "Export a zero-os resource",
}

ExportCmd represents the export subcommand

View Source
var ImportCmd = &cobra.Command{
	Use:   "import",
	Short: "Import a zero-os resource",
}

ImportCmd represents the export subcommand

View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List zero-os resources",
}

ListCmd represents the list subcommand

View Source
var RestoreCmd = &cobra.Command{
	Use:   "restore",
	Short: "Restore a zero-os resource",
}

RestoreCmd represents the restore subcommand

View Source
var RootCmd = &cobra.Command{
	Use: "zeroctl",
	Long: `zeroctl controls the zero-os resources

Find more information at github.com/zero-os/0-Disk/zeroctl.`,
}

RootCmd represents the base command when called without any subcommands

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Output the version information",
	Long:  "Outputs the tool version, runtime information, and optionally the commit hash.",
	Run:   outputVersion,
}

VersionCmd represents the version subcommand

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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