2019-07-28 10:04:53 +00:00
|
|
|
// +build !windows
|
2019-07-22 05:21:47 +00: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 10:04:53 +00:00
|
|
|
return envpath.Paths()
|
2019-07-22 05:21:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func indexOfPath(cur []string, p string) int {
|
|
|
|
return envpath.IndexOf(cur, p)
|
|
|
|
}
|