kiss: initial a arg

This commit is contained in:
Dylan Araps 2020-01-28 14:16:01 +02:00
parent 99532a705b
commit 4e99ad6135
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 14 additions and 9 deletions

23
kiss
View File

@ -1168,6 +1168,10 @@ args() {
# Actions can be abbreviated to their first letter. This saves # Actions can be abbreviated to their first letter. This saves
# keystrokes once you memorize the commands. # keystrokes once you memorize the commands.
case $action in case $action in
a|alternatives)
;;
b|build) b|build)
# If no arguments were passed, rebuild all packages. # If no arguments were passed, rebuild all packages.
[ "$1" ] || { [ "$1" ] || {
@ -1248,15 +1252,16 @@ args() {
;; ;;
h|help|-h|--help|'') h|help|-h|--help|'')
log 'kiss [b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]' log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
log 'build: Build a package' log 'alternatives: List and swap to alternatives'
log 'checksum: Generate checksums' log 'build: Build a package'
log 'install: Install a package' log 'checksum: Generate checksums'
log 'list: List installed packages' log 'install: Install a package'
log 'remove: Remove a package' log 'list: List installed packages'
log 'search: Search for a package' log 'remove: Remove a package'
log 'update: Check for updates' log 'search: Search for a package'
log 'version: Package manager version' log 'update: Check for updates'
log 'version: Package manager version'
;; ;;
*) die "'kiss $action' is not a valid command" ;; *) die "'kiss $action' is not a valid command" ;;