1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-22 23:20:06 -07:00
kiss/contrib/kiss-depends
Dylan Araps fdf2775640
kiss: Integrate with user scripts.
kiss' help output will now include all executables found in $PATH
which begin with kiss-*. A comment string is optionally usable via
setting the second line of the script to a string.

Example:

...

This also means that 'kiss <script name>' is also possible now.
If I have a script in my $PATH called kiss-depends, I can now use
it via kiss with 'kiss depends'.
2020-04-18 11:39:37 +03:00

9 lines
169 B
Bash
Executable File

#!/bin/sh -ef
# Display a package's dependencies.
kiss l "${1:-null}" >/dev/null
db_dir=$KISS_ROOT/var/db/kiss/installed/${1:-null}
cat "$db_dir/depends" 2>/dev/null