Commit 59ca9e26 authored by PoroCYon's avatar PoroCYon
Browse files

uninstall dry-run

parent 72071972
......@@ -5,8 +5,9 @@ print_help() {
Delete a package's installed binaries.
Usage: sspt uninstall [-h|-?|--help]
Print this help text and exit.
- sspt uninstall <package-name>
Uninstall the package.
- sspt uninstall {-d|--dry-run} <package-name>
Uninstall the package, optionally only printing the contents
of the recorded file list.
EOF
)
}
......@@ -34,6 +35,14 @@ main() {
"-h"|"-?"|"--help")
print_help
;;
"-d"|"--dry-run")
if ! exec_subcommand src-db exists "$2"; then
(>&2 echo "Package '$2' doesn't exist.")
exit 1
fi
cat "$SSPT_BIN_DB_DIR/$(escape_string "$2")"
;;
*)
if ! exec_subcommand src-db exists "$1"; then
(>&2 echo "Package '$1' doesn't exist.")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment