-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbash_completion.bash
More file actions
executable file
·58 lines (54 loc) · 1.97 KB
/
bash_completion.bash
File metadata and controls
executable file
·58 lines (54 loc) · 1.97 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
#to load complete command in zsh shell
autoload bashcompinit && bashcompinit
_bmx_cl_ruby()
{
local cur prev
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
case ${COMP_CWORD} in
1)
COMPREPLY=($(compgen -W "config host user tracker issue offer contract position escrow event cache" -- ${cur}))
;;
2)
case ${prev} in
config)
COMPREPLY=($(compgen -W "help show set" -- ${cur}))
;;
host)
COMPREPLY=($(compgen -W "help info ping counts next_week_ends increment_day_offset increment_hour_offset set_current_time rebuild" -- ${cur}))
;;
user)
COMPREPLY=($(compgen -W "help list show create deposit withdraw" -- ${cur}))
;;
tracker)
COMPREPLY=($(compgen -W "help list show create sync" -- ${cur}))
;;
issue)
COMPREPLY=($(compgen -W "help list show offers contract sync" -- ${cur}))
;;
offer)
COMPREPLY=($(compgen -W "help list show create_buy create_sell create_clone create_counter take cancel" -- ${cur}))
;;
contract)
COMPREPLY=($(compgen -W "help list show create clone cancel cross resolve series escrows ammendments positions open_offers" -- ${cur}))
;;
position)
COMPREPLY=($(compgen -W "help show" -- ${cur}))
;;
escrow)
COMPREPLY=($(compgen -W "help show" -- ${cur}))
;;
event)
COMPREPLY=($(compgen -W "help list update" -- ${cur}))
;;
cache)
COMPREPLY=($(compgen -W "help list show clear length value" -- ${cur}))
;;
esac
;;
*)
COMPREPLY=()
;;
esac
}
complete -F _bmx_cl_ruby bmx_cl_ruby