everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
24418ea014b571fa82a76684b38ad72255cfb46c blob 687 bytes (raw)

 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
 
#compdef dtas-mlib

# To the extent possible under law, James Rowe has waived all copyright and
# related or neighboring rights to this example.
#
_arguments \
    "--database=[database]:select file:_files" \
    "--force[force updates]" \
    "--help[display help message]" \
    ':dtas-mlib action:((
            dump\:"dump database"
            search\:"search database"
            stats\:"display statistics"
            update\:"migrate database"
        ))' \
    "*::subcmd:->subcmd" && return 0

case "$words[1]" in
(dump|update)
    _arguments -S \
        ":select directory:_path_files -/"
    ;;
(search)
    _arguments -S \
        "*:search term:"
    ;;
(*)
    ;;
esac
debug log:

solving 24418ea ...
found 24418ea in https://80x24.org/dtas.git

Code repositories for project(s) associated with this inbox:

	../../../dtas.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).