|
1 | 1 | #!/usr/bin/env bash |
2 | 2 |
|
3 | | -source $(dirname $(dirname $0))/lib/utils.sh |
4 | | - |
5 | | -source $(dirname $(dirname $0))/lib/commands/help.sh |
6 | | -source $(dirname $(dirname $0))/lib/commands/update.sh |
7 | | -source $(dirname $(dirname $0))/lib/commands/install.sh |
8 | | -source $(dirname $(dirname $0))/lib/commands/uninstall.sh |
9 | | -source $(dirname $(dirname $0))/lib/commands/current.sh |
10 | | -source $(dirname $(dirname $0))/lib/commands/where.sh |
11 | | -source $(dirname $(dirname $0))/lib/commands/which.sh |
12 | | -source $(dirname $(dirname $0))/lib/commands/version_commands.sh |
13 | | -source $(dirname $(dirname $0))/lib/commands/list.sh |
14 | | -source $(dirname $(dirname $0))/lib/commands/list-all.sh |
15 | | -source $(dirname $(dirname $0))/lib/commands/reshim.sh |
16 | | -source $(dirname $(dirname $0))/lib/commands/plugin-add.sh |
17 | | -source $(dirname $(dirname $0))/lib/commands/plugin-list.sh |
18 | | -source $(dirname $(dirname $0))/lib/commands/plugin-list-all.sh |
19 | | -source $(dirname $(dirname $0))/lib/commands/plugin-update.sh |
20 | | -source $(dirname $(dirname $0))/lib/commands/plugin-remove.sh |
21 | | - |
22 | | -source $(dirname $(dirname $0))/lib/commands/plugin-push.sh |
23 | | -source $(dirname $(dirname $0))/lib/commands/plugin-test.sh |
24 | | - |
25 | | - |
| 3 | +# shellcheck source=lib/utils.sh |
| 4 | +source "$(dirname "$(dirname "$0")")/lib/utils.sh" |
| 5 | + |
| 6 | +# shellcheck source=lib/commands/help.sh |
| 7 | +source "$(dirname "$(dirname "$0")")/lib/commands/help.sh" |
| 8 | +# shellcheck source=lib/commands/update.sh |
| 9 | +source "$(dirname "$(dirname "$0")")/lib/commands/update.sh" |
| 10 | +# shellcheck source=lib/commands/install.sh |
| 11 | +source "$(dirname "$(dirname "$0")")/lib/commands/install.sh" |
| 12 | +# shellcheck source=lib/commands/uninstall.sh |
| 13 | +source "$(dirname "$(dirname "$0")")/lib/commands/uninstall.sh" |
| 14 | +# shellcheck source=lib/commands/current.sh |
| 15 | +source "$(dirname "$(dirname "$0")")/lib/commands/current.sh" |
| 16 | +# shellcheck source=lib/commands/where.sh |
| 17 | +source "$(dirname "$(dirname "$0")")/lib/commands/where.sh" |
| 18 | +# shellcheck source=lib/commands/which.sh |
| 19 | +source "$(dirname "$(dirname "$0")")/lib/commands/which.sh" |
| 20 | +# shellcheck source=lib/commands/version_commands.sh |
| 21 | +source "$(dirname "$(dirname "$0")")/lib/commands/version_commands.sh" |
| 22 | +# shellcheck source=lib/commands/list.sh |
| 23 | +source "$(dirname "$(dirname "$0")")/lib/commands/list.sh" |
| 24 | +# shellcheck source=lib/commands/list-all.sh |
| 25 | +source "$(dirname "$(dirname "$0")")/lib/commands/list-all.sh" |
| 26 | +# shellcheck source=lib/commands/reshim.sh |
| 27 | +source "$(dirname "$(dirname "$0")")/lib/commands/reshim.sh" |
| 28 | +# shellcheck source=lib/commands/plugin-add.sh |
| 29 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-add.sh" |
| 30 | +# shellcheck source=lib/commands/plugin-list.sh |
| 31 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-list.sh" |
| 32 | +# shellcheck source=lib/commands/plugin-list-all.sh |
| 33 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-list-all.sh" |
| 34 | +# shellcheck source=lib/commands/plugin-update.sh |
| 35 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-update.sh" |
| 36 | +# shellcheck source=lib/commands/plugin-remove.sh |
| 37 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-remove.sh" |
| 38 | + |
| 39 | +# shellcheck source=lib/commands/plugin-push.sh |
| 40 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-push.sh" |
| 41 | +# shellcheck source=lib/commands/plugin-test.sh |
| 42 | +source "$(dirname "$(dirname "$0")")/lib/commands/plugin-test.sh" |
| 43 | + |
| 44 | +# shellcheck disable=SC2124 |
26 | 45 | callback_args="${@:2}" |
27 | 46 |
|
28 | 47 | case $1 in |
29 | 48 |
|
30 | 49 | "--version") |
31 | | - asdf_version $callback_args;; |
| 50 | + asdf_version "$callback_args";; |
32 | 51 |
|
33 | 52 | "help") |
34 | | - help_command $callback_args;; |
| 53 | + help_command "$callback_args";; |
35 | 54 |
|
36 | 55 | "update") |
37 | | - update_command $callback_args;; |
| 56 | + update_command "$callback_args";; |
38 | 57 |
|
39 | 58 | "install") |
40 | | - install_command $callback_args;; |
| 59 | + install_command "$callback_args";; |
41 | 60 |
|
42 | 61 | "uninstall") |
43 | | - uninstall_command $callback_args;; |
| 62 | + uninstall_command "$callback_args";; |
44 | 63 |
|
45 | 64 | "current") |
46 | | - current_command $callback_args;; |
| 65 | + current_command "$callback_args";; |
47 | 66 |
|
48 | 67 | "where") |
49 | | - where_command $callback_args;; |
| 68 | + where_command "$callback_args";; |
50 | 69 |
|
51 | 70 | "which") |
52 | | - which_command $callback_args;; |
| 71 | + which_command "$callback_args";; |
53 | 72 |
|
54 | 73 | "local") |
55 | | - local_command $callback_args;; |
| 74 | + local_command "$callback_args";; |
56 | 75 |
|
57 | 76 | "global") |
58 | | - global_command $callback_args;; |
| 77 | + global_command "$callback_args";; |
59 | 78 |
|
60 | 79 | "list") |
61 | | - list_command $callback_args;; |
| 80 | + list_command "$callback_args";; |
62 | 81 |
|
63 | 82 | "list-all") |
64 | | - list_all_command $callback_args;; |
| 83 | + list_all_command "$callback_args";; |
65 | 84 |
|
66 | 85 | "shim") |
67 | | - shim_command $callback_args;; |
| 86 | + shim_command "$callback_args";; |
68 | 87 |
|
69 | 88 | "reshim") |
70 | | - reshim_command $callback_args;; |
| 89 | + reshim_command "$callback_args";; |
71 | 90 |
|
72 | 91 | "plugin-add") |
73 | | - plugin_add_command $callback_args;; |
| 92 | + plugin_add_command "$callback_args";; |
74 | 93 |
|
75 | 94 | "plugin-list") |
76 | | - plugin_list_command $callback_args;; |
| 95 | + plugin_list_command "$callback_args";; |
77 | 96 |
|
78 | 97 | "plugin-list-all") |
79 | | - plugin_list_all_command $callback_args;; |
| 98 | + plugin_list_all_command "$callback_args";; |
80 | 99 |
|
81 | 100 | "plugin-update") |
82 | | - plugin_update_command $callback_args;; |
| 101 | + plugin_update_command "$callback_args";; |
83 | 102 |
|
84 | 103 | "plugin-remove") |
85 | | - plugin_remove_command $callback_args;; |
| 104 | + plugin_remove_command "$callback_args";; |
86 | 105 |
|
87 | 106 | # Undocumented commands for development |
88 | 107 | "plugin-push") |
89 | | - plugin_push_command $callback_args;; |
| 108 | + plugin_push_command "$callback_args";; |
90 | 109 |
|
91 | 110 | "plugin-test") |
92 | | - plugin_test_command $callback_args;; |
| 111 | + plugin_test_command "$callback_args";; |
93 | 112 |
|
94 | 113 | *) |
95 | 114 | help_command |
|
0 commit comments