Initial commit
This commit is contained in:
18
bin/audit
Executable file
18
bin/audit
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# System audit dispatcher
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
case "${1:---quick}" in
|
||||
--quick|-q) exec bash "$SCRIPT_DIR/scripts/audit/quick-glance.sh" ;;
|
||||
--full|-f) exec bash "$SCRIPT_DIR/scripts/audit/system-report.sh" ;;
|
||||
--json|-j) exec bash "$SCRIPT_DIR/scripts/audit/system-report.sh" --json ;;
|
||||
*)
|
||||
echo "Usage: audit [--quick|--full|--json]"
|
||||
echo " --quick Single-screen system status (default)"
|
||||
echo " --full Detailed report saved to data/audits/"
|
||||
echo " --json JSON output to stdout"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user