We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6674a commit 3838cf7Copy full SHA for 3838cf7
pkg/lib/cmd/basalt.sh
@@ -36,6 +36,7 @@ basalt.main() {
36
add) shift; do-add "$@" ;;
37
remove) shift; do-remove "$@" ;;
38
install) shift; do-install "$@" ;;
39
+ list) shift; do-list "$@" ;;
40
run) shift; do-run "$@" ;;
41
complete) shift; do-complete "$@" ;;
42
global) shift
pkg/lib/commands/do-list.sh
@@ -0,0 +1,13 @@
1
+# shellcheck shell=bash
2
+
3
+do-list() {
4
+ util.init_local
5
6
+ if util.get_toml_array "$BASALT_LOCAL_PROJECT_DIR/basalt.toml" 'dependencies'; then
7
+ for dependency in "${REPLIES[@]}"; do
8
+ util.get_package_info "$dependency"
9
+ local url="$REPLY2" version="$REPLY5"
10
+ printf '%s\n' "$url@$version"
11
+ done
12
+ fi
13
+}
0 commit comments