Documentation
¶
Index ¶
- func AWFConfigDir() string
- func AWFDataDir() string
- func AWFLogsDir() string
- func AWFPaths() map[string]string
- func AWFPluginsDir() string
- func AWFPromptsDir() string
- func AWFRolesDir() string
- func AWFScriptsDir() string
- func AWFSkillsDir() string
- func AWFStatesDir() string
- func AWFWorkflowPacksDir() string
- func AWFWorkflowsDir() string
- func ConfigHome() string
- func DataHome() string
- func LegacyDirExists() bool
- func LocalConfigPath() string
- func LocalPluginsDir() string
- func LocalPromptsDir() string
- func LocalRolesDir() string
- func LocalSkillsDir() string
- func LocalWorkflowPacksDir() string
- func LocalWorkflowsDir() string
- func PackAWFPaths(packName string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWFConfigDir ¶
func AWFConfigDir() string
AWFConfigDir returns the AWF config directory. Checks $AWF_CONFIG_HOME first, then falls back to $XDG_CONFIG_HOME/awf.
func AWFDataDir ¶
func AWFDataDir() string
AWFDataDir returns the AWF data directory ($XDG_DATA_HOME/awf)
func AWFPaths ¶ added in v0.11.2
AWFPaths returns all AWF XDG directory paths as a map for template interpolation. Keys: prompts_dir, scripts_dir, config_dir, data_dir, workflows_dir, plugins_dir, skills_dir, roles_dir.
func AWFPluginsDir ¶
func AWFPluginsDir() string
AWFPluginsDir returns the global plugins directory ($XDG_DATA_HOME/awf/plugins)
func AWFPromptsDir ¶
func AWFPromptsDir() string
AWFPromptsDir returns the global prompts directory ($XDG_CONFIG_HOME/awf/prompts)
func AWFRolesDir ¶ added in v0.11.2
func AWFRolesDir() string
AWFRolesDir returns the global roles directory ($XDG_CONFIG_HOME/awf/roles)
func AWFScriptsDir ¶
func AWFScriptsDir() string
AWFScriptsDir returns the global scripts directory ($XDG_CONFIG_HOME/awf/scripts)
func AWFSkillsDir ¶ added in v0.11.2
func AWFSkillsDir() string
AWFSkillsDir returns the global skills directory ($XDG_CONFIG_HOME/awf/skills)
func AWFWorkflowPacksDir ¶ added in v0.11.2
func AWFWorkflowPacksDir() string
AWFWorkflowPacksDir returns the global workflow packs directory ($XDG_DATA_HOME/awf/workflow-packs)
func AWFWorkflowsDir ¶
func AWFWorkflowsDir() string
AWFWorkflowsDir returns the global workflows directory
func ConfigHome ¶
func ConfigHome() string
ConfigHome returns XDG_CONFIG_HOME or defaults to ~/.config. Returns "" if XDG_CONFIG_HOME is not set and the user home directory cannot be determined, rather than producing a parasitic path such as "/.config".
func DataHome ¶
func DataHome() string
DataHome returns XDG_DATA_HOME or defaults to ~/.local/share. Returns "" if XDG_DATA_HOME is not set and the user home directory cannot be determined, rather than producing a parasitic path such as "/.local/share".
func LegacyDirExists ¶
func LegacyDirExists() bool
LegacyDirExists checks if the old ~/.awf directory exists
func LocalConfigPath ¶
func LocalConfigPath() string
LocalConfigPath returns the local project config file path. It checks AWF_CONFIG_PATH environment variable first, then defaults to ".awf/config.yaml".
func LocalPluginsDir ¶
func LocalPluginsDir() string
LocalPluginsDir returns the local project plugins directory
func LocalPromptsDir ¶
func LocalPromptsDir() string
LocalPromptsDir returns the local project prompts directory
func LocalRolesDir ¶ added in v0.11.2
func LocalRolesDir() string
LocalRolesDir returns the local project roles directory
func LocalSkillsDir ¶ added in v0.11.2
func LocalSkillsDir() string
LocalSkillsDir returns the local project skills directory
func LocalWorkflowPacksDir ¶ added in v0.11.2
func LocalWorkflowPacksDir() string
LocalWorkflowPacksDir returns the local project workflow packs directory
func LocalWorkflowsDir ¶
func LocalWorkflowsDir() string
LocalWorkflowsDir returns the local project workflows directory
func PackAWFPaths ¶ added in v0.11.2
PackAWFPaths returns AWF paths with pack_name set for pack context.
Types ¶
This section is empty.