vendor deps

This commit is contained in:
Matt Drollette
2017-10-15 14:16:48 -05:00
parent c17d0c6061
commit e7d4585361
130 changed files with 24604 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package cli
import (
"os"
"syscall"
)
// os.Clearenv() doesn't actually unset variables on Windows
// See: https://github.com/golang/go/issues/17902
func clearenv() {
for _, s := range os.Environ() {
for j := 1; j < len(s); j++ {
if s[j] == '=' {
keyp, _ := syscall.UTF16PtrFromString(s[0:j])
syscall.SetEnvironmentVariable(keyp, nil)
break
}
}
}
}