From 2f96d2b19afc549d1857e849a2c0d4a572605a1c Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Mon, 1 Dec 2014 17:54:59 +0100 Subject: [PATCH] Add cygport completions provided by Andrew Schulman Squashed commit of the following: commit a396c5e95a9987ea8ce6e057910131886d1b9695 Merge: bfd1951 f329530 Author: Konrad Borowski Date: Mon Dec 1 17:54:02 2014 +0100 Merge branch 'master' of https://github.com/andrex-e-schulman/fish-shell into andrex-e-schulman-master commit f32953064e1083be48c785f6763a4f6da6caf54b Author: Andrew Schulman Date: Mon Dec 1 05:34:29 2014 -0500 improve descriptions of pkg and diff commit 81def0fb3086de639453eacb2eab174f3c67b976 Author: Andrew Schulman Date: Mon Dec 1 04:51:20 2014 -0500 simplify cygport option descriptions commit 4d84eb3e5cadbf4b1f6210552256e5373360d8fb Author: Andrew Schulman Date: Mon Dec 1 04:32:47 2014 -0500 add command descriptions to share/completions/cygport commit c7ff7e4fa21dad19aeda0ae837e22bf4cff20a79 Author: Andrew Schulman Date: Mon Dec 1 03:09:00 2014 -0500 add share/completions/cygport.fish --- share/completions/cygport.fish | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 share/completions/cygport.fish diff --git a/share/completions/cygport.fish b/share/completions/cygport.fish new file mode 100644 index 000000000..f9ecb2863 --- /dev/null +++ b/share/completions/cygport.fish @@ -0,0 +1,29 @@ + +# Options +complete -c cygport -s 4 -l 32 -d "Build for 32-bit Cygwin" +complete -c cygport -s 8 -l 64 -d "Build for 64-bit Cygwin" +complete -c cygport -l debug -d "Enable debugging messages" + +# Cygport file +complete -c cygport -n '__fish_is_first_token' -A -f -a '*.cygport' -d "Cygport file" + +# Commands +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'downloadall fetchall wgetall getall' -d "Download all sources" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'download fetch wget get' -d "Download missing sources" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'prep unpack' -d "Prepare source directory" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'compile build make' -d "Build software" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'check test' -d "Run test suite" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'inst install' -d "Install into DESTDIR and run post-installation steps" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'postint' -d "Run post-installation steps" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'list' -d "List package files" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'listdebug listdbg' -d "List debug package files" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'dep' -d "Show dependencies" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'info' -d "Show packaging info" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'homepage web www' -d "Show project homepage URL" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'package pkg' -d "Create packages" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'diff mkdiff mkpatch' -d "Create source patches" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'upload up ci' -d "Upload finished packages" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'clean finish' -d "Delete working directory" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'almostall all' -d "Same as prep build inst pkg" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'help' -d "Show help" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'version' -d "Show version"