2
1
mirror of https://github.com/therootcompany/pathman.git synced 2025-03-11 19:00:42 +00:00
pathman/pathman_windows.go

26 lines
401 B
Go
Raw Normal View History

2019-07-21 23:21:47 -06:00
// +build windows
package main
import (
"git.rootprojects.org/root/pathman/winpath"
)
2019-07-28 05:03:44 -06:00
var pathstore = "[winpath] "
2019-07-21 23:21:47 -06: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 04:04:53 -06:00
return winpath.Paths()
2019-07-21 23:21:47 -06:00
}
func indexOfPath(cur []string, p string) int {
return winpath.IndexOf(cur, p)
}