Skip to content

Commit 9149e14

Browse files
committed
enhancement: allow sysg status to be interactive
1 parent 01b120c commit 9149e14

5 files changed

Lines changed: 500 additions & 42 deletions

File tree

Cargo.lock

Lines changed: 127 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ chrono = { version = "0.4", features = ["serde"] }
2222
chrono-tz = "0.9"
2323
clap = { version = "4.0", features = ["derive"] }
2424
cron = "0.12"
25+
crossterm = "0.28"
2526
ctrlc = "3.4"
2627
fs2 = "0.4"
2728
libc = "0.2.170"

docs/docs/how-it-works/commands/status.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,22 @@ title: status
55

66
# status
77

8-
Check the health of running services.
8+
Check the health of running services with an interactive table interface.
99

1010
```sh
1111
$ sysg status
1212
```
1313

14+
## Interactive Mode
15+
16+
By default, `sysg status` displays an interactive table where you can:
17+
- **Tab** or **** (Down arrow) - Move to the next service
18+
- **Shift+Tab** or **** (Up arrow) - Move to the previous service
19+
- **Enter** - Open the inspect view for the selected service
20+
- **q** or **ESC** - Exit the status view
21+
22+
The selected row is highlighted with a white background for easy visibility.
23+
1424
## Options
1525

1626
| Option | Description |
@@ -19,9 +29,9 @@ $ sysg status
1929
| `--service` | Show specific service details |
2030
| `--all` | Show all services including orphaned state (services not in current config) |
2131
| `--sys` | Opt into privileged system mode. Requires running as root |
22-
| `--json` | Emit machine-readable JSON output instead of a table |
32+
| `--json` | Emit machine-readable JSON output instead of a table (disables interactive mode) |
2333
| `--no-color` | Disable ANSI colors in output |
24-
| `--stream` | Continuously refresh status at the provided interval (e.g., `5`, `1s`, `2m`) |
34+
| `--stream` | Continuously refresh status at the provided interval (e.g., `5`, `1s`, `2m`) (disables interactive mode) |
2535
| `--log-level` | Set verbosity (`debug`, `info`, `warn`, `error`) |
2636

2737
## Examples

0 commit comments

Comments
 (0)