-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/all: Accept version argument for the install and use commands
Closes #106
- Loading branch information
Showing
14 changed files
with
245 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
! exec hvm install x1 | ||
stderr 'Error: invalid tag: x1\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
! exec hvm install v0.1.2 | ||
stderr 'Error: tag "v0\.1\.2" not found in repository\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
exec hvm install v0.138.0 | ||
stdout 'Downloading v.* done.\n' | ||
stdout 'Installation of v.* complete.\n' |
12 changes: 12 additions & 0 deletions
12
cmd/testscripts/status/status_fail_printPath_exclusive.txtar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
! exec hvm status --printExecPath --printExecPathCached | ||
stderr 'Error: if any flags in the group \[printExecPath printExecPathCached\] are set none of the others can be; \[printExecPath printExecPathCached\] were all set\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
[windows] env AppData=config | ||
|
||
# Test | ||
exec hvm use --latest | ||
exec hvm use latest | ||
stdout 'Downloading v.* done.\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
! exec hvm use x1 | ||
stderr 'Error: invalid tag: x1\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
! exec hvm use v0.1.2 | ||
stderr 'Error: tag "v0\.1\.2" not found in repository\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# User cache and config dirs (we use os.UserCacheDir and os.UserCongfigDir) | ||
[darwin] env HOME=home | ||
[darwin] mkdir "$HOME/Library/Caches" | ||
[darwin] mkdir "$HOME/Library/Application Support" | ||
[linux] env XDG_CACHE_HOME=cache | ||
[linux] env XDG_CONFIG_HOME=config | ||
[windows] env LocalAppData=cache | ||
[windows] env AppData=config | ||
|
||
# Test | ||
exec hvm use v0.138.0 | ||
stdout 'Downloading v.* done.\n' |
Oops, something went wrong.