xdg

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 ($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 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 AWFScriptsDir

func AWFScriptsDir() string

AWFScriptsDir returns the global scripts directory ($XDG_CONFIG_HOME/awf/scripts)

func AWFStatesDir

func AWFStatesDir() string

AWFStatesDir returns the states storage directory

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

func DataHome

func DataHome() string

DataHome returns XDG_DATA_HOME or defaults to ~/.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 LocalWorkflowsDir

func LocalWorkflowsDir() string

LocalWorkflowsDir returns the local project workflows directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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