mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-28 15:54:40 +00:00
update go mock to allow for both version and env sub-commands
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user