ShareDir generates the share directory for the cli.
()
| 44 | |
| 45 | // ShareDir generates the share directory for the cli. |
| 46 | func ShareDir() string { |
| 47 | if IsWindows() { |
| 48 | return path.Join(UserHomeDir(), "AppData/LocalLow/catppuccin-cli") |
| 49 | } |
| 50 | return path.Join(GetEnv("XDG_DATA_HOME", HandleDir("~/.local/")), "share/catppuccin-cli") |
| 51 | } |
| 52 | |
| 53 | // OSReadDir expands a directory path into a list of files within that directory. Not recursive. |
| 54 | func OSReadDir(root string) ([]string, error) { |
no test coverage detected