diff --git a/ppkg b/ppkg index 15e8003..2eea738 100755 --- a/ppkg +++ b/ppkg @@ -7370,7 +7370,7 @@ main() { PPKG="$CURRENT_SCRIPT_FILEPATH" - PPKG_VERSION=0.1.5 + PPKG_VERSION=0.1.6 PPKG_OFFICAL_FORMULA_REPO_URL="https://github.com/leleliu008/ppkg-formula-repository-offical-core.git" PPKG_UPGRAGE_URL='https://raw.githubusercontent.com/leleliu008/ppkg/master/ppkg' @@ -7413,6 +7413,20 @@ main() { gen-url-transform-sample) shift __gen_url_transform_sample "$@" + return 0 + ;; + env) + cat </dev/null)) @@ -69,7 +65,7 @@ function _ppkg() { typeset -A opt_args _arguments \ - '1: :_ppkg_commands' \ + '1: :{_describe ppkg_actions _ppkg_actions}' \ '*:: :->option' case $state in @@ -160,13 +156,13 @@ function _ppkg() { _arguments \ '1:package-name:_ppkg_available_packages' \ '-t[set output format]:output-type:(dot box svg png)' \ - '-o[set output filepath or directory]:output-path:{_files}' + '-o[set output filepath or directory]:output-path:_files' ;; pack) _arguments \ '1:package-name:_ppkg_installed_packages' \ '-t[set output type]:output-type:(zip tar.gz tar.xz tar.lz tar.bz2)' \ - '-o[set output filepath or directory]:output-path:{_files}' \ + '-o[set output filepath or directory]:output-path:_files' \ '--keep-packing-dir[do not delete packing dir even if packed success]' ;; tree)