Documentation
¶
Index ¶
- Constants
- Variables
- func AnySlice(value any) ([]any, bool)
- func BoolPtr(value any) *bool
- func CacheDir() (string, bool)
- func CanonicalPath(path string) string
- func ConfigDir() (string, bool)
- func ConfigFile() (string, bool)
- func ConfigIgnoreFile() string
- func DataDir() (string, bool)
- func ExpandUserPath(path string) string
- func FindWorkspace(dir string) (string, bool)
- func IntPtr(value any) *int
- func LanguagesFile() (string, bool)
- func LoadDefaultLanguagesTOML() (map[string]any, bool)
- func LoadMergedTOML(paths []string, depth int) (map[string]any, bool)
- func LoadMergedTOMLWithBase(base map[string]any, paths []string, depth int) (map[string]any, bool)
- func LoadThemeTOML(name string) (map[string]any, error)
- func LogFile() (string, bool)
- func MergeTOMLValues(left, right any, depth int) any
- func QueryWorkspaceTrust(dir string, insecure bool) bool
- func StringPtr(value any) *string
- func ThemeNames() []string
- func TrustWorkspace(dir string) error
- func UntrustWorkspace(dir string) error
- func WorkspaceConfigFile(dir string) string
- func WorkspaceInitFile(dir string) string
- func WorkspaceLanguagesFile(dir string) string
- func WorkspaceTrustFile() (string, bool)
Constants ¶
View Source
const ( DirName = "toe" LogFileName = "toe.log" WorkspaceDirName = "." + DirName )
Variables ¶
View Source
var ( ErrThemeNotFound = errors.New("theme not found") ErrThemeCycle = errors.New("theme inheritance cycle") )
Functions ¶
func CanonicalPath ¶ added in v0.1.27
CanonicalPath resolves symlinks in path's parent directory and joins the unresolved final element
func ConfigFile ¶
func ConfigIgnoreFile ¶
func ConfigIgnoreFile() string
func ExpandUserPath ¶
ExpandUserPath expands leading home-directory shorthand and environment vars
func FindWorkspace ¶
func LanguagesFile ¶
func LoadDefaultLanguagesTOML ¶
LoadDefaultLanguagesTOML returns the cached bundled defaults; do not mutate
func LoadMergedTOMLWithBase ¶
func LoadMergedTOMLWithBase( base map[string]any, paths []string, depth int, ) (map[string]any, bool)
LoadMergedTOMLWithBase merges TOML files onto an already decoded base map
func MergeTOMLValues ¶
func QueryWorkspaceTrust ¶
func ThemeNames ¶
func ThemeNames() []string
func TrustWorkspace ¶
func UntrustWorkspace ¶
func WorkspaceConfigFile ¶
func WorkspaceInitFile ¶ added in v0.1.31
WorkspaceInitFile returns the workspace Ale initialization path
func WorkspaceLanguagesFile ¶
func WorkspaceTrustFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.