package traverse

Import Path
	github.com/carapace-sh/carapace/pkg/traverse (on go.dev)

Dependency Relation
	imports 6 packages, and imported by one package

Involved Source Files git.go golang.go os.go traverse.go xdg.go
Package-Level Type Names (only one)
/* sort by: | */
( Context) Abs(s string) (string, error) ( Context) Getenv(key string) string ( Context) LookupEnv(key string) (string, bool) github.com/carapace-sh/carapace/pkg/style.Context (interface) github.com/carapace-sh/carapace/pkg/uid.Context (interface) github.com/carapace-sh/carapace.Context Context : github.com/carapace-sh/carapace/pkg/style.Context Context : github.com/carapace-sh/carapace/pkg/uid.Context func GitDir(tc Context) (string, error) func GitWorkTree(tc Context) (string, error) func GoBinDir(tc Context) (dir string, err error) func TempDir(tc Context) (string, error) func UserCacheDir(tc Context) (string, error) func UserConfigDir(tc Context) (string, error) func UserHomeDir(tc Context) (string, error) func XdgCacheHome(tc Context) (dir string, err error) func XdgConfigHome(tc Context) (dir string, err error)
Package-Level Functions (total 11)
Flag returns the value of given flag.
GitDir returns the location of the .git folder.
GitWorkTree returns the location of the root of the working directory for a non-bare repository.
GoBinDir TODO experimental
Parent returns the first parent directory containing any of the given names/directories.
TempDir returns the default directory to use for temporary files.
UserCacheDir returns the default root directory to use for user-specific cached data.
UserConfigDir returns the default root directory to use for user-specific configuration data.
UserHomeDir returns the current user's home directory.
XdgCacheHome returns the cache directory (fallback to UserCacheDir).
XdgConfigHome returns the home directory (fallback to UserConfigDir).