config

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigCmd = &cobra.Command{
	Use:       "config",
	Short:     "Set or get configuration for ioctl",
	ValidArgs: []string{"set", "get"},
	Args:      cobra.MinimumNArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("Print: " + strings.Join(args, " "))
	},
}

ConfigCmd represents the config command

View Source
var (
	// ConfigDir is the directory to store config file
	ConfigDir string
)
View Source
var ErrEmptyEndpoint = "no endpoint has been set"

ErrEmptyEndpoint indicates error for empty endpoint

Functions

func GetEndpoint

func GetEndpoint() string

GetEndpoint gets the endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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