promote nodebuild_wrapped from install to utils so we can use it in list-all

This commit is contained in:
burnettk 2022-03-12 17:57:37 -05:00 committed by kburnett
parent e893a30a24
commit a20484c57f
3 changed files with 5 additions and 6 deletions

View File

@ -34,11 +34,6 @@ wrong, try to manually update node-build by running: \`asdf %s update nodebuild\
}
nodebuild_wrapped() {
"$ASDF_NODEJS_PLUGIN_DIR/lib/commands/command-nodebuild.bash" "$@"
}
install_canon_version() {
local install_type="$1" version="$2" install_path="$3"
local args=()

View File

@ -17,7 +17,7 @@ function print_only_fully_numeric_items() {
grep -E '^[0-9.]+$' <<< "$version_numbers"
}
all_definitions_from_node_build="$("$ASDF_NODEJS_PLUGIN_DIR/lib/commands/command-nodebuild.bash"--definitions)"
all_definitions_from_node_build="$(nodebuild_wrapped --definitions)"
# Print
echo $(

View File

@ -97,3 +97,7 @@ print_index_tab(){
rm "$temp_headers_file"
}
nodebuild_wrapped() {
"$ASDF_NODEJS_PLUGIN_DIR/lib/commands/command-nodebuild.bash" "$@"
}