cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildInfo struct {
	Version, BuildTime, Builder, GoVersion, Target string
}

BuildInfo is the build information of reco binary. This is set at build time by ldflags.

View Source
var RootCmd = &cobra.Command{
	Use:   "reco",
	Short: "reco is the Reconfigure.io command line tool",
	Long:  `reco is the Reconfigure.io command line tool`,
}

RootCmd represents the base command when called without any subcommands

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.

func UpgradeTo added in v0.5.0

func UpgradeTo(version string, platform string) error

Types

type File

type File string

File is a convenience wrapper to get platform independent filename. e.g. strip .exe from filename for windows.

func (File) Name

func (f File) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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