-
-
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/install: Add flag to install version specified in dot file
Closes #21
- Loading branch information
Showing
11 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
Empty file.
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,15 @@ | ||
# 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 | ||
|
||
# https://github.com/actions/runner-images/issues/602 | ||
[darwin] skip | ||
|
||
# Test | ||
! exec hvm install --useVersionInDotFile | ||
stderr 'Error: the current directory does not contain a \.hvm file\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,20 @@ | ||
# 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 | ||
|
||
# https://github.com/actions/runner-images/issues/602 | ||
[darwin] skip | ||
|
||
# Test | ||
exec hvm install --useVersionInDotFile | ||
stdout 'Downloading v0.54.0... done.\n' | ||
stdout 'Installation of v0.54.0 complete.\n' | ||
|
||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 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 |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>Categories on </title> | ||
<link>/categories/</link> | ||
<description>Recent content in Categories on </description> | ||
<generator>Hugo -- gohugo.io</generator><atom:link href="/categories/index.xml" rel="self" type="application/rss+xml" /> | ||
</channel> | ||
</rss> |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title></title> | ||
<link>/</link> | ||
<description>Recent content on </description> | ||
<generator>Hugo -- gohugo.io</generator><atom:link href="/index.xml" rel="self" type="application/rss+xml" /> | ||
</channel> | ||
</rss> |
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | ||
xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
<url> | ||
<loc>/</loc> | ||
</url><url> | ||
<loc>/categories/</loc> | ||
</url><url> | ||
<loc>/tags/</loc> | ||
</url> | ||
</urlset> |
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,9 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>Tags on </title> | ||
<link>/tags/</link> | ||
<description>Recent content in Tags on </description> | ||
<generator>Hugo -- gohugo.io</generator><atom:link href="/tags/index.xml" rel="self" type="application/rss+xml" /> | ||
</channel> | ||
</rss> |