-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/use: Ignore numTagsToDisplay with useVersionInDotFile flag
Fixes #44
- Loading branch information
Showing
3 changed files
with
38 additions
and
18 deletions.
There are no files selected for viewing
File renamed without changes.
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,19 @@ | ||
# 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 --useVersionInDotFile | ||
stdout 'Downloading v0\.54\.0\.\.\. done\.\n' | ||
[darwin] exists 'home/Library/Caches/hvm/v0.54.0/hugo' | ||
[linux] exists 'cache/hvm/v0.54.0/hugo' | ||
[windows] exists 'cache\\hvm\\v0.54.0\\hugo.exe' | ||
|
||
# Files | ||
-- .hvm -- | ||
v0.54.0 |
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