1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: Added search.

This commit is contained in:
Dylan Araps 2019-07-13 23:31:00 +03:00
parent bd79daab8b
commit 4344a2d017

9
kiss
View File

@ -889,6 +889,12 @@ args() {
pkg_updates pkg_updates
;; ;;
# Search packages
s*)
[ "$2" ] || die "'kiss search' requires an argument."
pkg_search "$2"
;;
# Print version and exit. # Print version and exit.
v*) v*)
log "$kiss 0.2.6" log "$kiss 0.2.6"
@ -897,12 +903,13 @@ args() {
# Catch all invalid arguments as well as # Catch all invalid arguments as well as
# any help related flags (-h, --help, help). # any help related flags (-h, --help, help).
*) *)
log "$kiss [b|c|i|l|r|u] [pkg]" \ log "$kiss [b|c|i|l|r|s|u] [pkg]" \
"build: Build a package." \ "build: Build a package." \
"checksum: Generate checksums." \ "checksum: Generate checksums." \
"install: Install a package (Runs build if needed)." \ "install: Install a package (Runs build if needed)." \
"list: List packages." \ "list: List packages." \
"remove: Remove a package." \ "remove: Remove a package." \
"search: Search for a package." \
"update: Check for updates." "update: Check for updates."
;; ;;
esac esac