spogulis no https://github.com/therootcompany/pathman.git
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
25 rindas
392 B
25 rindas
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)
|
|
}
|