Manage PATH on Windows, Mac, and Linux with various Shells
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
401 B

// +build windows
package main
import (
"git.rootprojects.org/root/pathman/winpath"
)
var pathstore = "[winpath] "
func addPath(p string) (bool, error) {
return winpath.Add(p)
}
func removePath(p string) (bool, error) {
return winpath.Remove(p)
}
func listPaths() ([]string, error) {
return winpath.Paths()
}
func indexOfPath(cur []string, p string) int {
return winpath.IndexOf(cur, p)
}