docs: fix stale rollback comment in index and add --json flag to pin docs
- commit
- 9dd139189d17e6e9a052f189d4a7c92639e6585f
- author
- brice · · 2026-04-28 03:20 UTC
- parent
- e4bd401
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
2 files · +5 -1
M docs/cli/index.md +1 -1
| @@ -80,7 +80,7 @@ gordon push myapp --build | |||
| 80 | 80 | # Push and deploy without confirmation | |
| 81 | 81 | gordon push myapp --no-confirm | |
| 82 | 82 | ||
| 83 | - | # Roll back to a previous tag | |
| 83 | + | # Pin to a specific tag | |
| 84 | 84 | gordon pin myapp.example.com | |
| 85 | 85 | ||
| 86 | 86 | # View logs | |
| @@ -80,7 +80,7 @@ gordon push myapp --build | |||||
| 80 | # Push and deploy without confirmation | 80 | # Push and deploy without confirmation | ||
| 81 | gordon push myapp --no-confirm | 81 | gordon push myapp --no-confirm | ||
| 82 | 82 | ||||
| 83 | - | # Roll back to a previous tag | 83 | + | # Pin to a specific tag |
| 84 | gordon pin myapp.example.com | 84 | gordon pin myapp.example.com | ||
| 85 | 85 | ||||
| 86 | # View logs | 86 | # View logs | ||
M docs/cli/pin.md +4 -0
| @@ -24,6 +24,7 @@ gordon pin list <domain> | |||
| 24 | 24 | | `--tag` | Target tag (skips interactive selection) | | |
| 25 | 25 | | `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) | | |
| 26 | 26 | | `--token` | Authentication token for remote | | |
| 27 | + | | `--json` | Output as JSON (for `pin list`) | | |
| 27 | 28 | ||
| 28 | 29 | ### Description | |
| 29 | 30 | ||
| @@ -53,6 +54,9 @@ gordon pin myapp.example.com --tag v1.2.0 | |||
| 53 | 54 | ||
| 54 | 55 | # List available tags for a domain | |
| 55 | 56 | gordon pin list myapp.example.com | |
| 57 | + | ||
| 58 | + | # List available tags as JSON | |
| 59 | + | gordon pin list myapp.example.com --json | |
| 56 | 60 | ``` | |
| 57 | 61 | ||
| 58 | 62 | ### Notes | |
| @@ -24,6 +24,7 @@ gordon pin list <domain> | |||||
| 24 | | `--tag` | Target tag (skips interactive selection) | | 24 | | `--tag` | Target tag (skips interactive selection) | | ||
| 25 | | `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) | | 25 | | `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) | | ||
| 26 | | `--token` | Authentication token for remote | | 26 | | `--token` | Authentication token for remote | | ||
| 27 | + | | `--json` | Output as JSON (for `pin list`) | | |||
| 27 | 28 | ||||
| 28 | ### Description | 29 | ### Description | ||
| 29 | 30 | ||||
| @@ -53,6 +54,9 @@ gordon pin myapp.example.com --tag v1.2.0 | |||||
| 53 | 54 | ||||
| 54 | # List available tags for a domain | 55 | # List available tags for a domain | ||
| 55 | gordon pin list myapp.example.com | 56 | gordon pin list myapp.example.com | ||
| 57 | + | ||||
| 58 | + | # List available tags as JSON | |||
| 59 | + | gordon pin list myapp.example.com --json | |||
| 56 | ``` | 60 | ``` | ||
| 57 | 61 | ||||
| 58 | ### Notes | 62 | ### Notes | ||