project

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: BSD-2-Clause, Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAgentList

func GetAgentList(project_dir string) []string

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

func GetConfigPath() (string, error)

GetConfigPath retrieves the path to a core config file in the core project directory.

func GetCoreDirectory

func GetCoreDirectory() (string, error)

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

func GetProjectDir() (string, error)

GetProjectDir walks up directory tree to find the project directory.

func GetScriptPaths

func GetScriptPaths(agent_name string) ([]string, error)

func IsCoreProject

func IsCoreProject(dirpath string) bool

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.

func SaveConfig

func SaveConfig() error

SaveConfig writes a core config file to the config path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳