Documentation ¶
Index ¶
- func Flag(f *pflag.Flag) func(tc Context) (string, error)
- func GitDir(tc Context) (string, error)
- func GitWorkTree(tc Context) (string, error)
- func GoBinDir(tc Context) (dir string, err error)
- func Parent(names ...string) func(tc Context) (string, 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)
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitWorkTree ¶
GitWorkTree returns the location of the root of the working directory for a non-bare repository.
func Parent ¶
Parent returns the first parent directory containing any of the given names/directories.
func UserCacheDir ¶
UserCacheDir returns the default root directory to use for user-specific cached data.
func UserConfigDir ¶
UserConfigDir returns the default root directory to use for user-specific configuration data.
func UserHomeDir ¶
UserHomeDir returns the current user's home directory.
func XdgCacheHome ¶
XdgCacheHome returns the cache directory (fallback to UserCacheDir).
func XdgConfigHome ¶
XdgConfigHome returns the home directory (fallback to UserConfigDir).
Types ¶
Click to show internal directories.
Click to hide internal directories.