From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: files/misc/
Date: Sat, 22 Feb 2014 15:15:44 +0000 (UTC) [thread overview]
Message-ID: <1393082125.6e4f6bda0b41e9b4cf554c6d06db0ad3cb85ba12.dywi@gentoo> (raw)
commit: 6e4f6bda0b41e9b4cf554c6d06db0ad3cb85ba12
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Sat Feb 22 15:15:25 2014 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Sat Feb 22 15:15:25 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=6e4f6bda
add bash completion for roverlay-query-config
---
files/misc/roverlay.bashcomp | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/files/misc/roverlay.bashcomp b/files/misc/roverlay.bashcomp
index 60a49e6..c15dd96 100644
--- a/files/misc/roverlay.bashcomp
+++ b/files/misc/roverlay.bashcomp
@@ -306,3 +306,35 @@ _roverlay_setup_comp() {
esac
}
complete -F _roverlay_setup_comp roverlay-setup
+
+_roverlay_query_config_comp() {
+ local cur
+ local prev
+
+ COMPREPLY=()
+ _get_comp_words_by_ref cur prev
+
+ local LONGOPTS=(
+ '--help' '--config-file' '--all' '--list-all'
+ '--empty-missing' '--from-file' '--outfile' '--variable'
+ )
+ local SHORTOPTS=(
+ '-h' '-C' '-a' '-l' '-u' '-f' '-O' '-v'
+ )
+
+ case "${prev}" in
+ '-C'|'--config-file'|'-f'|'--from-file'|'-O'|'--outfile')
+ # <file> arg
+ _filedir
+ ;;
+ '-v'|'--variable')
+ true
+ ;;
+ *)
+ COMPREPLY=(
+ $( compgen -W "${LONGOPTS[*]} ${SHORTOPTS[*]}" -- "${cur}" )
+ )
+ ;;
+ esac
+}
+complete -F _roverlay_query_config_comp roverlay-query-config
next reply other threads:[~2014-02-22 15:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-22 15:15 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-07-18 16:20 [gentoo-commits] proj/R_overlay:master commit in: files/misc/ André Erdmann
2014-04-01 16:38 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-13 16:19 André Erdmann
2013-08-19 15:42 André Erdmann
2013-08-09 10:18 André Erdmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1393082125.6e4f6bda0b41e9b4cf554c6d06db0ad3cb85ba12.dywi@gentoo \
--to=dywi@mailerd.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox