diff --git a/README.md b/README.md index 8a0698c..905c321 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,10 @@ docker | Flag | Alias | Description | |------|-------|-------------| +| `--help` | `-h` | Show help message | | `--state` | `-s` | State file to read package list from (can be used multiple times) | | `--dry-run` | | Preview changes without applying them | -| `--help` | `-h` | Show help message | +| `--verbose` | `-v` | Enable verbose output | ## How It Works @@ -83,59 +84,6 @@ If the pacman database is older than 24 hours, it is automatically refreshed. Operations are logged to `/var/log/declpac.log`. -## Output - -``` -# Packages installed/removed -Installed 5 packages, removed 2 packages - -# No changes needed -Installed 0 packages, removed 0 packages - -# Dry-run preview -Installed 3 packages, removed 1 packages -Would install: vim, git, docker -Would remove: python2 - -# Error -error: package not found: -``` - -### Exit Codes - -| Code | Meaning | -|------|---------| -| 0 | Success | -| 1 | Error | - -## Examples - -### Minimal System - -```bash -echo -e "base\nbase-devel\nlinux-headers\nvim\ngit\ncurl" > ~/.config/declpac/minimal.txt -sudo declpac --state ~/.config/declpac/minimal.txt -``` - -### Development Environment - -```bash -# development.txt -go -nodejs -python -rust -docker - -sudo declpac --state development.txt -``` - -### Dry-Run - -```bash -sudo declpac --dry-run --state packages.txt -``` - ## Troubleshooting ### Permission denied