Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
25 lignes
392 B
25 lignes
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)
|
|
}
|