mirror of
https://github.com/cheat/cheat.git
synced 2024-11-21 21:41:35 +01:00
feat: platform compatibility
Add experimental support for the following platforms: - aix - dragonfly - illumos - ios - netbsd - openbsd - plan9 - solaris
This commit is contained in:
parent
c9ccefa607
commit
1a85c9e9c8
@ -28,7 +28,10 @@ func Paths(
|
||||
}
|
||||
|
||||
switch sys {
|
||||
case "android", "darwin", "linux", "freebsd":
|
||||
|
||||
// darwin/linux/unix
|
||||
case "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios",
|
||||
"linux", "netbsd", "openbsd", "plan9", "solaris":
|
||||
paths := []string{}
|
||||
|
||||
// don't include the `XDG_CONFIG_HOME` path if that envvar is not set
|
||||
@ -43,6 +46,8 @@ func Paths(
|
||||
}...)
|
||||
|
||||
return paths, nil
|
||||
|
||||
// windows
|
||||
case "windows":
|
||||
return []string{
|
||||
filepath.Join(envvars["APPDATA"], "cheat", "conf.yml"),
|
||||
|
Loading…
Reference in New Issue
Block a user