Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditFile ¶
EditFile opens the specified in an editor, respecting $EDITOR if it is set, otherwise using vim
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 GetConfigVariables ¶
GetConfigVariables gets the variables set in the configuration file
func GetProfiles ¶
GetProfiles returns a list of all the profiles
func GetTemplates ¶
GetTemplates returns a list of all the templates in the current profile
func SaveVariables ¶
func SaveVariables() error
SaveVariables saves the variables the config file, respecting case
Types ¶
type Template ¶
type Template struct { Line string `json:"line"` Variables map[string]string `json:"variables"` Defaults map[string]string `json:"defaults"` }
func GetTemplate ¶
GetTemplate returns a Template object loaded using the specified template
type VariablesConfig ¶
Click to show internal directories.
Click to hide internal directories.