Documentation
¶
Index ¶
- func GetAgentList(project_dir string) []string
- func GetConfigFilename() string
- func GetConfigPath() (string, error)
- func GetCoreDirectory() (string, error)
- func GetCorePath() string
- func GetProjectDir() (string, error)
- func GetScriptPaths(agent_name string) ([]string, error)
- func IsCoreProject(dirpath string) bool
- func LoadConfig() error
- func ReadConfig(config_path string)
- func SaveConfig() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAgentList ¶
GetAgentList retrieves the names of all agents in project_dir as a slice.
func GetConfigFilename ¶
func GetConfigFilename() string
GetConfigFilename returns the name of the core config file. As of right now, the default name is config.yaml.
func GetConfigPath ¶
GetConfigPath retrieves the path to a core config file in the core project directory.
func GetCoreDirectory ¶
GetCoreDirectory retrieves the path to the core project directory.
func GetCorePath ¶
func GetCorePath() string
GetCorePath returns the name of the core executable. As of right now, the default path is ./.core.
func GetProjectDir ¶
GetProjectDir walks up directory tree to find the project directory.
func GetScriptPaths ¶
func IsCoreProject ¶
IsCoreProject checks if directory is a core project directory.
func LoadConfig ¶
func LoadConfig() error
LoadConfig loads a core config file and ENV variables, if set.
func ReadConfig ¶
func ReadConfig(config_path string)
readConfig reads in config file and ENV variables if set.
Types ¶
This section is empty.