cmd

package
v1.1.0-alpha-3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 10 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 g8os resource",
}

CopyCmd represents the copy subcommand

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

DeleteCmd represents the delete subcommand

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

ListCmd represents the list subcommand

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

RestoreCmd represents the restore subcommand

View Source
var RootCmd = &cobra.Command{
	Use: "g8stor",
	Long: `g8stor controls the g8os resources
	
Find more information at github.com/g8os/blockstor/g8stor.`,
}

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