diff options
-rwxr-xr-x | bin/pkg | 10 | ||||
-rw-r--r-- | man/1/pkg | 6 | ||||
-rw-r--r-- | provides/zsh/completions/_pkg | 12 |
3 files changed, 17 insertions, 11 deletions
@@ -824,10 +824,13 @@ cd $PKG_DIR || die "Cannot cd $PKG_DIR" # Note: # wrap foobar "$1" <- the "" are neccessary here, since $1 is optional (and therefore may be empty) case $action in - add) pkg_add $* ;; - delete) pkg_remove $* ;; + add|install) + pkg_add $* + ;; + delete|remove) + pkg_remove $* + ;; info) pkg_info $* ;; - install) pkg_add $* ;; list) pkg_list $* ;; log) pkg_log $* ;; push) @@ -835,7 +838,6 @@ case $action in wrap pkg_push "$1" 'Pushing' ;; refresh) wrap pkg_refresh "$1" 'Refreshing' ;; - remove) pkg_remove $* ;; status) wrap pkg_status "$1" 'Checking package status' ;; update) pkg_update $* ;; upgrade|pull) @@ -16,11 +16,11 @@ I<action> may be one of: =over -=item B<add>|B<install> I<package> +=item B<add> I<package> fetch given I<package> from the package_root and install it -=item B<delete>|B<remove> I<package> +=item B<remove> I<package> Remove I<package> from the local packages tree @@ -75,7 +75,7 @@ If no arguments is given, checks all installed packages Update local/remote package list (both if no argument is given) -=item B<upgrade>|B<pull> [ I<package> ] +=item B<pull> [ I<package> ] retrieve and install newest available version of I<package>. If no argument is given, updates all installed packages diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index 4fe4922..33992fd 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -9,8 +9,8 @@ typeset expl function _pkg_action () { _wanted action expl 'action' \ - compadd add install delete eval remove info list \ - log pull push refresh status update upgrade + compadd add eval remove info list \ + log pull push refresh status update } function _pkg_installed () { @@ -31,13 +31,13 @@ function _pkg_notinstalled () { function _pkg_args { if (( CURRENT == 2 )) { case ${words[1]} in - changelog|check|delete|log|pull|push|refresh|remove|status|upgrade) + log|pull|push|refresh|remove|status) _pkg_installed ;; info) _pkg_all ;; - add|install) + add) _pkg_notinstalled ;; eval) @@ -84,5 +84,9 @@ _arguments \ '*--checklinks-options[options for checklinks]:option' \ '--packagedir[package directory]:directory:_files -/' \ '--packageroot[package root]:url' \ + '--colours[use colours]' \ + '--no-colours[No colours]' \ + '--progress[show progress bar]' \ + '--no-progress[No progress bar]' \ ':action:_pkg_action' \ '*::arguments:_pkg_args' |