diff options
-rwxr-xr-x | bin/pkg | 1 | ||||
-rw-r--r-- | man/1/pkg | 4 | ||||
-rw-r--r-- | provides/zsh/completions/_pkg | 4 |
3 files changed, 7 insertions, 2 deletions
@@ -636,6 +636,7 @@ case $1 in status) wrap pkg_status "$2" "Checking package status" ;; update) pkg_update ;; upgrade) wrap pkg_upgrade "$2" "Looking for updates" ;; + eval) eval $2 ;; *) die "wait, what?\n" ;; esac @@ -40,6 +40,10 @@ If no argument is given, checks all installed packages Remove I<package> from the local packages tree +=imen B<eval> I<expression> + +Evauluate I<expression>, e.g. to manually execute a hook + =item B<info> I<package> Show information on I<package>, like dependencies, version, etc diff --git a/provides/zsh/completions/_pkg b/provides/zsh/completions/_pkg index e4ecfff..b9008f5 100644 --- a/provides/zsh/completions/_pkg +++ b/provides/zsh/completions/_pkg @@ -9,7 +9,7 @@ typeset expl function _pkg_action () { _wanted action expl 'action' \ - compadd add install changelog changeroot check delete remove info \ + compadd add install changelog changeroot check delete eval remove info \ list list-all local-update log push remote-update status update upgrade } @@ -36,5 +36,5 @@ if (( CURRENT >= 3 )) { add|install) _arguments -s '2: :_pkg_notinstalled' ;; esac } else { - _arguments -s '1: :_pkg_action' + _pkg_action } |