forked from asdf-vm/asdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasdf
More file actions
executable file
·85 lines (60 loc) · 1.91 KB
/
Copy pathasdf
File metadata and controls
executable file
·85 lines (60 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env bash
source $(dirname $(dirname $0))/lib/utils.sh
source $(dirname $(dirname $0))/lib/commands/help.sh
source $(dirname $(dirname $0))/lib/commands/install.sh
source $(dirname $(dirname $0))/lib/commands/uninstall.sh
source $(dirname $(dirname $0))/lib/commands/current.sh
source $(dirname $(dirname $0))/lib/commands/where.sh
source $(dirname $(dirname $0))/lib/commands/version_commands.sh
source $(dirname $(dirname $0))/lib/commands/list.sh
source $(dirname $(dirname $0))/lib/commands/list-all.sh
source $(dirname $(dirname $0))/lib/commands/reshim.sh
source $(dirname $(dirname $0))/lib/commands/plugin-add.sh
source $(dirname $(dirname $0))/lib/commands/plugin-list.sh
source $(dirname $(dirname $0))/lib/commands/plugin-update.sh
source $(dirname $(dirname $0))/lib/commands/plugin-remove.sh
source $(dirname $(dirname $0))/lib/commands/plugin-push.sh
source $(dirname $(dirname $0))/lib/commands/plugin-test.sh
callback_args="${@:2}"
case $1 in
"--version")
asdf_version $callback_args;;
"help")
help_command $callback_args;;
"install")
install_command $callback_args;;
"uninstall")
uninstall_command $callback_args;;
"current")
current_command $callback_args;;
"where")
where_command $callback_args;;
"local")
local_command $callback_args;;
"global")
global_command $callback_args;;
"list")
list_command $callback_args;;
"list-all")
list_all_command $callback_args;;
"shim")
shim_command $callback_args;;
"reshim")
reshim_command $callback_args;;
"plugin-add")
plugin_add_command $callback_args;;
"plugin-list")
plugin_list_command $callback_args;;
"plugin-update")
plugin_update_command $callback_args;;
"plugin-remove")
plugin_remove_command $callback_args;;
# Undocumented commands for development
"plugin-push")
plugin_push_command $callback_args;;
"plugin-test")
plugin_test_command $callback_args;;
*)
help_command
exit 1;;
esac