-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goenv install flags (--list) #5
Comments
@sighmin Cool idea. 😄 @wfarr Here are a couple potential implementations:
Thoughts? Thanks! |
@wfarr I thought of a third option; it doesn't require extra files.
Potential array implementation: bash-3.2$ echo $platform
darwin
bash-3.2$ echo $arch
amd64
bash-3.2$ echo $extra
-osx10.8
bash-3.2$ VERSIONS["darwin_amd64_osx108"]="1.2.1 1.2"
bash-3.2$ VERSIONS["darwin_amd64_osx106"]="1.2.1 1.2"
bash-3.2$ key="${platform}_${arch}_$(echo ${extra} | tr -d '[:punct:]')"
bash-3.2$ echo $key
darwin_amd64_osx108
bash-3.2$ echo ${VERSIONS[$key]}
1.2.1 1.2
bash-3.2$ for version in `echo ${VERSIONS[$key]}`
> do
> echo $version
> done
1.2.1
1.2 Thanks for considering! |
How's this? #6 I went with the third version. Sorry if it's not leet I'm not a bash expert. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for getting this started dude.
It would be great to have a
--list
flag for thegoenv install
command o see what versions are available.The text was updated successfully, but these errors were encountered: