mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-23 12:40:08 +00:00
update go mock to allow for both version and env sub-commands
This commit is contained in:
parent
192d634e08
commit
ac3307400d
1 changed files with 8 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue