Manage PATH on Windows, Mac, and Linux with various Shells
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

25 righe
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)
}