How can we improve the documentation?
The current docs on specifying versions via env var use ASDF_ELIXIR_VERSION as an example, but don't mention what the variables should look like for tools whose names contain dashes, e.g. aws-sam-cli: Should it be ASDF_AWS_SAM_CLI_VERSION or ASDF_AWSSAMCLI_VERSION?
An LLM found the relevant code which answers my question:
|
sanitized := strings.ReplaceAll(upper, "-", "_") |
So it is in fact ASDF_AWS_SAM_CLI_VERSION. But I shouldn't have to ask an LLM, the docs should just mention how it works for hyphenated/dashed tool names.
How can we improve the documentation?
The current docs on specifying versions via env var use
ASDF_ELIXIR_VERSIONas an example, but don't mention what the variables should look like for tools whose names contain dashes, e.g.aws-sam-cli: Should it beASDF_AWS_SAM_CLI_VERSIONorASDF_AWSSAMCLI_VERSION?An LLM found the relevant code which answers my question:
asdf/internal/resolve/resolve.go
Line 135 in 92b25e2
So it is in fact
ASDF_AWS_SAM_CLI_VERSION. But I shouldn't have to ask an LLM, the docs should just mention how it works for hyphenated/dashed tool names.