go-pathman/pathman_unixes.go

24 lines
372 B
Go
Raw Normal View History

2019-07-28 04:04:53 -06:00
// +build !windows
2019-07-21 23:21:47 -06:00
package main
import (
"git.rootprojects.org/root/pathman/envpath"
)
func addPath(p string) (bool, error) {
return envpath.Add(p)
}
func removePath(p string) (bool, error) {
return envpath.Remove(p)
}
func listPaths() ([]string, error) {
2019-07-28 04:04:53 -06:00
return envpath.Paths()
2019-07-21 23:21:47 -06:00
}
func indexOfPath(cur []string, p string) int {
return envpath.IndexOf(cur, p)
}