summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg1
-rw-r--r--man/1/pkg4
-rw-r--r--provides/zsh/completions/_pkg4
3 files changed, 7 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 4f2cb40..9b76318 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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
diff --git a/man/1/pkg b/man/1/pkg
index 0e53ca7..8bec1c3 100644
--- a/man/1/pkg
+++ b/man/1/pkg
@@ -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
}