diff options
author | classabbyamp <dev@kb6.ee> | 2022-03-23 16:11:25 -0400 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-03-25 23:52:30 +0100 |
commit | 601c93bd27315e9876431fce46f58f564272800d (patch) | |
tree | 2908a77147c0fcce3927afa7bccfa890e24659ef /_xtools | |
parent | eedea0e5f57edda89c54a666a266f4d474624a67 (diff) | |
download | xtools-601c93bd27315e9876431fce46f58f564272800d.tar.gz xtools-601c93bd27315e9876431fce46f58f564272800d.tar.xz xtools-601c93bd27315e9876431fce46f58f564272800d.zip |
New tool: xpkgdiff
Closes: #232 [via git-merge-pr]
Diffstat (limited to '_xtools')
-rw-r--r-- | _xtools | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/_xtools b/_xtools index 366bffa..aed7f86 100644 --- a/_xtools +++ b/_xtools @@ -1,4 +1,4 @@ -#compdef xbuildbarf xbulk xbump xcheckrestart xdbg xdiff xdowngrade xgensum xgrep xi xilog xlg xlocate xlog xls xmypkgs xoptdiff xpkg xq xrecent xrevbump xrevshlib xsrc xsubpkg +#compdef xbuildbarf xbulk xbump xcheckrestart xdbg xdiff xdowngrade xgensum xgrep xi xilog xlg xlocate xlog xls xmypkgs xoptdiff xpkg xpkgdiff xq xrecent xrevbump xrevshlib xsrc xsubpkg _xbps # force autoload @@ -98,6 +98,18 @@ _xpkg() { '-V[show version numbers and description]' } +_xpkgdiff() { + _arguments : \ + '-S[compare package metadata]' \ + '-c[compare a file from package]:file name:_files:package:_xbps_all_packages' \ + '-f[compare package file lists]' \ + '-p[compare package properties]' \ + '-r[reverse diff (compare local to remote)]' \ + '-x[compare package dependencies]' \ + '-t[compare the full package dependency tree for -x]' \ + '*:package:_xtools_just_packages' +} + _xq() { _arguments : \ '-R[include remote information too]' \ @@ -136,6 +148,7 @@ _xtools() { xmypkgs) _xmypkgs "$@";; xoptdiff) _xoptdiff "$@";; xpkg) _xpkg "$@";; + xpkgdiff) _xpkgdiff "$@";; xq) _xq "$@";; xrecent) _xtools_one_arch "$@";; xrevbump) _xrevbump "$@";; |