Skip to content
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

fix: rename internal function asdf_tool_versions_filename #1544

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/asdf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ asdf_cmd() {
fi

# Internal Variables
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=$(asdf_default_tool_versions_filename)
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=$(asdf_tool_versions_filename)
export ASDF_DEFAULT_TOOL_VERSIONS_FILENAME

ASDF_CONFIG_FILE=$(asdf_config_file)
Expand Down
2 changes: 1 addition & 1 deletion lib/functions/versions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version_command() {
local file_name
local file

file_name="$(asdf_default_tool_versions_filename)"
file_name="$(asdf_tool_versions_filename)"

if [ "$cmd" = "global" ]; then
file="$HOME/$file_name"
Expand Down
6 changes: 3 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ asdf_version() {
fi
}

asdf_default_tool_versions_filename() {
asdf_tool_versions_filename() {
printf '%s\n' "${ASDF_DEFAULT_TOOL_VERSIONS_FILENAME:-.tool-versions}"
}

Expand Down Expand Up @@ -163,7 +163,7 @@ get_version_in_dir() {

local asdf_version

file_name=$(asdf_default_tool_versions_filename)
file_name=$(asdf_tool_versions_filename)
asdf_version=$(parse_asdf_version_file "$search_path/$file_name" "$plugin_name")

if [ -n "$asdf_version" ]; then
Expand Down Expand Up @@ -456,7 +456,7 @@ get_plugin_source_url() {
}

find_tool_versions() {
find_file_upwards "$(asdf_default_tool_versions_filename)"
find_file_upwards "$(asdf_tool_versions_filename)"
}

find_file_upwards() {
Expand Down