added directly mode on some commands (#31)

This commit is contained in:
Arwid Thornström
2025-11-06 13:30:10 +01:00
committed by GitHub
parent 1ed0f300dc
commit 7e50d5eb54
4 changed files with 415 additions and 52 deletions
+24
View File
@@ -14,3 +14,27 @@ needed for the photowall organisation.
# Usage
When running `pwcli` command in the terminal is will open a interactive view but all commands are accessable through shortcuts. So if you want to run status on development testservers its possible to run `pwcli d ts s` for d = development, ts = test servers, s = status. Shortcuts are listed in the interactive view.
## Interactive Mode
Run commands interactively with prompts and menus:
```bash
pwcli # Open interactive menu
pwcli d ts u # Update testserver with interactive prompts
pwcli d ts s # View testserver status in table format
```
## Non-Interactive Mode
Many commands support non-interactive mode with parameters and JSON output, perfect for CI/CD and automation:
```bash
# View testserver status as JSON
pwcli d ts s --json
# Update testserver without interactive prompts
pwcli d ts u --branch feature/123 --stack test-01 --skip-confirm --json
```
For detailed documentation including all flags, parameters, and JSON output formats, see [docs/help.md](docs/help.md).