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:
parent
9df12bce11
commit
249c5a2c43
13
contrib/kiss-help
Executable file
13
contrib/kiss-help
Executable 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
4
kiss
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user