1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-12 08:10:07 +00:00

update go mock to allow for both version and env sub-commands

This commit is contained in:
Jason Hutchinson 2017-04-19 00:11:02 -05:00
parent 192d634e08
commit ac3307400d

View file

@ -12,7 +12,14 @@ function setUp() {
}
function mockGo() {
echo 'go version go1.5.3 darwin/amd64'
case "$1" in
'version')
echo 'go version go1.5.3 darwin/amd64'
;;
'env')
echo "$HOME/go"
;;
esac
}
function testGo() {