Security toolkit for logging, tracking, and exporting compliance-related activities. Each command records timestamped entries to its own log file. Call without arguments to view recent entries; call with arguments to record a new entry.
| Command | What it does |
|---|---|
| --------- | ------------- |
compliance generate | Record a generate entry (no args = show recent) |
compliance check-strength | Record a check-strength entry (no args = show recent) |
compliance rotate | Record a rotate entry (no args = show recent) |
compliance audit | Record an audit entry (no args = show recent) |
compliance store | Record a store entry (no args = show recent) |
compliance retrieve | Record a retrieve entry (no args = show recent) |
compliance expire | Record an expire entry (no args = show recent) |
compliance policy | Record a policy entry (no args = show recent) |
compliance report | Record a report entry (no args = show recent) |
compliance hash | Record a hash entry (no args = show recent) |
compliance verify | Record a verify entry (no args = show recent) |
compliance revoke | Record a revoke entry (no args = show recent) |
compliance stats | Show summary statistics across all log files |
compliance export | Export all data to json, csv, or txt format |
compliance search | Search all log entries for a keyword |
compliance recent | Show the 20 most recent history entries |
compliance status | Health check — version, entry count, disk usage, last activity |
compliance help | Show help message |
compliance version | Show version (v2.0.0) |
All data is stored locally in ~/.local/share/compliance/. Each command writes to its own .log file (e.g., audit.log, policy.log). A unified history.log tracks all activity with timestamps.
wc, du, tail, grep, date, sed)# Record an audit finding
compliance audit "reviewed access controls for prod database — 3 issues found"
# Log a credential rotation
compliance rotate "rotated API keys for payment gateway"
# Record a policy update
compliance policy "updated data retention policy to 90 days"
# Check password strength assessment
compliance check-strength "admin account meets complexity requirements"
# Search all logs for "database"
compliance search database
# Export compliance records to JSON
compliance export json
# View overall stats
compliance stats
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
共 1 个版本