File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ local -a targets
7
7
8
8
_arguments -C \
9
9
' -clean[clean out old generated binaries from CACHE_DIR]' \
10
- ' -compile[output a static binary to the given path]:compilepath:->compilepath ' \
10
+ ' -compile[output a static binary to the given path]:compilepath:_path_files ' \
11
11
' -init[create a starting template if no mage files exist]' \
12
12
' -h[show help]' \
13
13
' -l[list mage targets in this directory]' \
14
- ' -d[directory to read magefiles from (default "." or "magefiles" if exists)]:magepath:->magepath ' \
14
+ ' -d[directory to read magefiles from (default "." or "magefiles" if exists)]:magepath:_path_files -/ ' \
15
15
' -debug[turn on debug messages]' \
16
16
' -f[force recreation of compiled magefile]' \
17
17
' -goarch[sets the GOARCH for the binary created by -compile (default: current arch)]' \
@@ -52,12 +52,6 @@ case "$state" in
52
52
_get_targets || ret=1
53
53
_describe ' mage' targets && ret=0
54
54
;;
55
- compilepath)
56
- _path_files && ret=0
57
- ;;
58
- magepath)
59
- _path_files -/ && ret=0
60
- ;;
61
55
esac
62
56
63
57
return ret
You can’t perform that action at this time.
0 commit comments