pathman/pathman_windows.go

26 lines
401 B
Go
Raw Permalink Normal View History

2019-07-22 05:21:47 +00:00
// +build windows
package main
import (
"git.rootprojects.org/root/pathman/winpath"
)
2019-07-28 11:03:44 +00:00
var pathstore = "[winpath] "
2019-07-22 05:21:47 +00:00
func addPath(p string) (bool, error) {
return winpath.Add(p)
}
func removePath(p string) (bool, error) {
return winpath.Remove(p)
}
func listPaths() ([]string, error) {
2019-07-28 10:04:53 +00:00
return winpath.Paths()
2019-07-22 05:21:47 +00:00
}
func indexOfPath(cur []string, p string) int {
return winpath.IndexOf(cur, p)
}