-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_xp
More file actions
32 lines (29 loc) · 724 Bytes
/
Copy path_xp
File metadata and controls
32 lines (29 loc) · 724 Bytes
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
#compdef xp
_xp() {
local curcontext="$curcontext" state line
typeset -A opt_args
_arguments \
'(-cp)-cp[Add the path value to the class path.]: :->cpath' \
'(-v)-v[Display version and classloader information.]' \
'(-e)-e[Evaluate code.]' \
'(-w)-w[Evaluate code and write result.]' \
'(-d)-d[Evaluate code and dump result.]' \
'(-r)-r[Reflect a class.]' \
'(-xar)-xar[Running XARs.]: :->xar' \
'*: :->rest'
case $state in
conf)
_arguments '*:Config path:_directories'
;;
cpath)
_arguments '*:Class path:_directories'
;;
xar)
_files -g '*.xar'
;;
rest)
_xp_class
_files
;;
esac
}