]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/ros/_ros
6a04d3c8f53794d4bce5167b52c9ecd0b5dcb8f5
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / ros / _ros
1 #compdef ros
2 #autoload
3
4 # roswell zsh completion, based on gem completion
5
6 local -a _1st_arguments
7 _1st_arguments=(
8 'run: Run repl'
9 'install:Install a given implementation or a system for roswell environment'
10 'update:Update installed systems.'
11 'build:Make executable from script.'
12 'use:Change default implementation.'
13 'init:a new ros script, optionally based on a template.'
14 'fmt:Indent lisp source.'
15 'list:Information'
16 'template:[WIP] Manage templates'
17 'delete:Delete installed implementations'
18 'config:Get and set options'
19 'version:Show the roswell version information'
20 "help:Use \"ros help [command]\" for more information about a command."$'\n\t\t'"Use \"ros help [topic]\" for more information about the topic."
21
22
23 #local expl
24
25 _arguments \
26   '(--version)'--version'[Print version information and quit]' \
27   '(-w --wrap)'{-w,--wrap}'[\[CODE\] Run roswell with a shell wrapper CODE]' \
28   '(-m --image)'{-m,--image}'[\[IMAGE\] continue from Lisp image IMAGE]' \
29   '(-M --module)'{-M,--module}'[\[NAME\] Execute ros script found in ROSWELLPATH. (pythons -m)]' \
30   '(-L --lisp)'{-L,--lisp}'[\[NAME\] Run roswell with a lisp impl NAME\[/VERSION\].]' \
31   '(-l --load)'{-l,--load}'[\[FILE\] load lisp FILE while building]' \
32   '(-S --source-registry)'{-S,--source-registry}'[\[X\] override source registry of asdf systems]' \
33   '(-s --system --load-system)'{-s,--system,--load-system}'[\[SYSTEM\] load asdf SYSTEM while building]' \
34   '(-p --package)'{-p,--package}'[\[PACKAGE\] change current package to \[PACKAGE\]]' \
35   '(-sp --system-package)'{-sp,--system-package}'[\[SP\] combination of -s \[SP\] and -p \[SP\]]' \
36   '(-e --eval)'{-e,--eval}'[\[FORM\] evaluate \[FORM\] while building]' \
37   '--require'--require'[\[MODULE\] require \[MODULE\] while building]' \
38   '(-q --quit)'{-q,--quit}'[quit lisp here]' \
39   '(-r --restart)'{-r,--restart}'[\[FUNC\] restart from build by calling (\[FUNC\])]' \
40   '(-E --entry)'{-E,--entry}'[\[FUNC\] restart from build by calling (\[FUNC\] argv)]' \
41   '(-i --init)'{-i,--init}'[\[FORM\] evaluate \[FORM\] after restart]' \
42   '(-ip --print)'{-ip,--print}'[\[FORM\] evaluate and princ \[FORM\] after restart]' \
43   '(-iw --write)'{-iw,--write}'[\[FORM\] evaluate and write \[FORM\] after restart]' \
44   '(-F --final)'{-F,--final}'[\[FORM\] evaluate \[FORM\] before dumping IMAGE]' \
45   '(\+R --no-rc)'{\+R,--no-rc}'[skip /etc/rosrc, ~/.roswell/init.lisp]' \
46   '(-A --asdf)'{-A,--asdf}'[use new asdf]' \
47   '(\+Q --no-quicklisp)'{\+Q,--no-quicklisp}'[do not use quicklisp]' \
48   '(-v --verbose)'{-v,--verbose}'[be quite noisy while building]' \
49   '--quiet'--quiet'[be quite quiet while building default]' \
50   '--test'--test'[for test purpose]' \
51   '*:: :->subcmds'  && return 0
52
53
54 if (( CURRENT == 1 )); then
55   _describe -t commands "ros subcommand" _1st_arguments
56   return
57 fi
58
59 # _files
60 case "$words[1]" in
61   -l|--load)
62     _files
63     ;;
64 esac