From 4d84eb3e5cadbf4b1f6210552256e5373360d8fb Mon Sep 17 00:00:00 2001 From: Andrew Schulman Date: Mon, 1 Dec 2014 04:32:47 -0500 Subject: [PATCH] add command descriptions to share/completions/cygport --- share/completions/cygport.fish | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/share/completions/cygport.fish b/share/completions/cygport.fish index 60c25dd47..1acac4bba 100644 --- a/share/completions/cygport.fish +++ b/share/completions/cygport.fish @@ -1,6 +1,29 @@ -complete -c cygport -s 4 -l 32 -complete -c cygport -s 8 -l 64 -complete -c cygport -l debug -complete -c cygport -n '__fish_is_first_token' -A -f -a '*.cygport' -complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'downloadall fetchall wgetall getall download fetch wget get prep unpack compile build make check test inst postint list listdebug listdbg dep info homepage web www package pkg diff mkdiff mkpatch upload up ci clean finish almostall all help version' +# Options +complete -c cygport -s 4 -l 32 -d "Build package for 32-bit Cygwin" +complete -c cygport -s 8 -l 64 -d "Build package 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 package files" +complete -c cygport -n 'not __fish_is_first_token' -A -f -a 'diff mkdiff mkpatch' -d "Create patch files" +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"