mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-05 15:25:28 +08:00
promote nodebuild_wrapped from install to utils so we can use it in list-all
This commit is contained in:
parent
e893a30a24
commit
a20484c57f
@ -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=()
|
||||
|
@ -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 $(
|
||||
|
@ -97,3 +97,7 @@ print_index_tab(){
|
||||
|
||||
rm "$temp_headers_file"
|
||||
}
|
||||
|
||||
nodebuild_wrapped() {
|
||||
"$ASDF_NODEJS_PLUGIN_DIR/lib/commands/command-nodebuild.bash" "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user