cmd

package
v0.0.0-...-d1642fb Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "stack",
	Short: "Amazon ECS Interface",
	Long:  ``,
}

RootCmd represents the base command when called without any subcommands

Functions

func Confirm

func Confirm(q string) bool

Confirm : return confirmation based on user input

func EoE

func EoE(msg string, err error)

EoE : exit with error code 1 and print if err is notnull

func Execute

func Execute()

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

func GetHomeDir

func GetHomeDir() string

GetHomeDir : returns a full path to user's home dorectory

func GetInput

func GetInput(q string) string

GetInput : return string of user input

func SelectFromArray

func SelectFromArray(a []string) string

SelectFromArray : select an element in the provided array

func SendRequest

func SendRequest(req *http.Request) []byte

SendRequest : send http request to provided url

func SetFromInput

func SetFromInput(a *string, q string)

SetFromInput : set value of provided var to the value of user input

Types

This section is empty.

Jump to

Keyboard shortcuts

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