огледало од https://github.com/therootcompany/pathman.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
392 B
25 lines
392 B
// +build !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"git.rootprojects.org/root/pathman/envpath"
|
|
)
|
|
|
|
var pathstore = ""
|
|
|
|
func addPath(p string) (bool, error) {
|
|
return envpath.Add(p)
|
|
}
|
|
|
|
func removePath(p string) (bool, error) {
|
|
return envpath.Remove(p)
|
|
}
|
|
|
|
func listPaths() ([]string, error) {
|
|
return envpath.Paths()
|
|
}
|
|
|
|
func indexOfPath(cur []string, p string) int {
|
|
return envpath.IndexOf(cur, p)
|
|
}
|