-
-
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: Make the hvm dot file independent of OS and environment
Closes #19
- Loading branch information
Showing
6 changed files
with
86 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 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 | ||
[darwin] stdout '^home/Library/Caches/hvm/v0.117.0/hugo\n$' | ||
[linux] stdout '^cache/hvm/v0.117.0/hugo\n$' | ||
[windows] stdout '^cache\\hvm\\v0.117.0\\hugo.exe\n$' | ||
|
||
# Files | ||
-- .hvm -- | ||
v0.117.0 | ||
-- home/Library/Caches/hvm/v0.117.0/hugo -- | ||
darwin-exec-bytes | ||
-- cache/hvm/v0.117.0/hugo -- | ||
linux-exec-bytes | ||
-- cache/hvm/v0.117.0/hugo.exe -- | ||
windows-exec-bytes |
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