xdg

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Index

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 AWFLogsDir

func AWFLogsDir() string

AWFLogsDir returns the logs storage directory

func AWFPaths added in v0.11.2

func AWFPaths() map[string]string

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 AWFStatesDir

func AWFStatesDir() string

AWFStatesDir returns the states storage directory

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

func PackAWFPaths(packName string) map[string]string

PackAWFPaths returns AWF paths with pack_name set for pack context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL