aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-13 20:30:59 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-13 20:30:59 +0000
commit65a56cfdca4b491f949c20ecbb607630f64a663c (patch)
tree42b5baa457191d3e16fa5d3ffb907267ad73b18a /kiss
parentfe8c1fcfeff7a5552513fc17d1b7d6e902b326b4 (diff)
downloadcpt-65a56cfdca4b491f949c20ecbb607630f64a663c.tar.gz
kiss: Added search.
FossilOrigin-Name: dd50c09d0876bd158a7709bb2c95076a2c89fd7319b78c4b9bf676ccd5450eb7
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss9
1 files changed, 8 insertions, 1 deletions
diff --git a/kiss b/kiss
index 6cf4652..60ba6bb 100755
--- a/kiss
+++ b/kiss
@@ -889,6 +889,12 @@ args() {
pkg_updates
;;
+ # Search packages
+ s*)
+ [ "$2" ] || die "'kiss search' requires an argument."
+ pkg_search "$2"
+ ;;
+
# Print version and exit.
v*)
log "$kiss 0.2.6"
@@ -897,12 +903,13 @@ args() {
# Catch all invalid arguments as well as
# 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." \
"checksum: Generate checksums." \
"install: Install a package (Runs build if needed)." \
"list: List packages." \
"remove: Remove a package." \
+ "search: Search for a package." \
"update: Check for updates."
;;
esac