Documentation ¶
Index ¶
- func GetAllDirsInsideTmpl() ([]string, error)
- type Instance
- func (i *Instance) CreateFromConfig() *Instance
- func (i *Instance) CreateSampleConfigFile() *Instance
- func (i *Instance) DeleteStateForDir(directory string) *Instance
- func (i *Instance) GenerateConfigFilesFromDir(dirToGenerateFrom string) *Instance
- func (i *Instance) ParseConfig() *Instance
- func (i *Instance) PrintStateForDir(directory string) *Instance
- func (i *Instance) ReturnStateForDir(directory string) *Instance
- func (i *Instance) RunScripts() *Instance
- func (i *Instance) StopRunningCommand() *Instance
- func (i *Instance) TimeTaken() *Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllDirsInsideTmpl ¶
GetAllDirsInsideTmpl gets all directories inside template folder
Types ¶
type Instance ¶
type Instance struct { Config map[string]interface{} Error error Flags *pflag.FlagSet StartTime time.Time ConfigDir string execution.Instance }
Instance is the main struct for command configs
func (*Instance) CreateFromConfig ¶
CreateFromConfig writes config struct to file
func (*Instance) CreateSampleConfigFile ¶
CreateSampleConfigFile creates sample config file
func (*Instance) DeleteStateForDir ¶
DeleteStateForDir deletes state for given dir
func (*Instance) GenerateConfigFilesFromDir ¶
GenerateConfigFilesFromDir generates all config files
func (*Instance) ParseConfig ¶
ParseConfig parses the file passed in through flags
func (*Instance) PrintStateForDir ¶
PrintStateForDir prints state for given dir
func (*Instance) ReturnStateForDir ¶
ReturnStateForDir prints state for given dir
func (*Instance) RunScripts ¶
RunScripts runs all scripts in a directory
func (*Instance) StopRunningCommand ¶
StopRunningCommand stops currently running command
Click to show internal directories.
Click to hide internal directories.