Open yorinasub17 opened 5 years ago
This seems like a good idea.
Perhaps we could expose a --name-template
option that is a Go template with a default of:
{{ .BinaryName }}_{{ .OsName }}_{{ .ArchName }}
The default will work for many use cases, but when necessary, users can override that with any Go template syntax of their choice and fetch
will fill in those variables.
gruntwork-install
has the ability to introspect the OS and architecture of the system to determine which binary asset to install.I can see why this is not in
fetch
, which is more generic and thus cannot rely on our naming conventions, but it would be nice if that functionality was baked into fetch itself. The primary use case for this would be Windows support.gruntwork-install
is implemented inbash
, which means it can't be used in most Windows environments. It would be nice if we can port that functionality intofetch
, so that we can support Windows too.Notes:
gruntwork-install
to be in python or Go so that it is portable.