1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-22 23:20:06 -07:00

kiss-help: New utility

This commit is contained in:
Dylan Araps 2020-06-13 00:00:58 +03:00
parent 9df12bce11
commit 249c5a2c43
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 15 additions and 2 deletions

13
contrib/kiss-help Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# Read KISS documentation
cd "$KISS_ROOT/usr/share/doc/kiss" 2>/dev/null || {
printf 'Documentation is missing from /usr/share/doc/kiss\n'
exit 1
}
[ -f "${1:-.}/index.txt" ] && file=./${1:-.}/index.txt
[ -f "${1:-.}.txt" ] && file=./${1:-.}.txt
"${PAGER:-less}" "$file"

4
kiss
View File

@ -1408,9 +1408,9 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg do pkg_find "$pkg" all; done ;;
v|version) printf '3.0.1\n' ;;
v|version) printf '3.0.2\n' ;;
h|help|-h|--help|'')
-h|--help|'')
log 'kiss [a|b|c|d|i|l|r|s|u|v] [pkg]...'
log 'alternatives List and swap to alternatives'
log 'build Build a package'