Skip to content

Commit f5c5ca7

Browse files
author
iOS E2E Implementation
committed
feat(cli/logs): TDD tests + implementation verified; docs: README and Epic E final update
1 parent bbc4fe7 commit f5c5ca7

2 files changed

Lines changed: 38 additions & 3 deletions

File tree

crates/aether-cli/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Aether CLI
2+
3+
## `aether logs`
4+
5+
Stream application logs from the control-plane.
6+
7+
Flags:
8+
- --app <name> (default: $AETHER_DEFAULT_APP or "sample-app")
9+
- --follow (keep connection and auto-reconnect)
10+
- --since <duration|RFC3339>
11+
- --container <name>
12+
- --format json|text (default: text)
13+
- --color (optional colorization)
14+
15+
Environment overrides:
16+
- AETHER_API_BASE: control-plane base URL (e.g., http://localhost:8080)
17+
- AETHER_LOGS_FOLLOW=1: default follow behavior
18+
- AETHER_LOGS_FORMAT=json|text: default format
19+
- AETHER_LOGS_CONTAINER: default container
20+
- AETHER_LOGS_SINCE: default since filter
21+
- AETHER_LOGS_TAIL: tail lines (default 100)
22+
- AETHER_LOGS_MAX_RECONNECTS: cap reconnect attempts
23+
- AETHER_LOGS_MOCK=1: mock output without network (used in tests/CI)
24+
25+
Examples:
26+
- aether logs --app demo --follow
27+
- AETHER_LOGS_FORMAT=json aether logs --app demo
28+
- AETHER_LOGS_MOCK=1 aether logs --app demo --format text

docs/issues/17-epic-E-cli-logs.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Summary
66
Expose aether logs command consuming the new logs API with common UX flags.
77

88
Tasks
9-
- [ ] E1 Implement `aether logs`
9+
- [x] E1 Implement `aether logs`
1010
- Flags: --app, --follow, --since, --container, --format=json|text
1111
- Graceful reconnect; colorize by pod/container (optional)
1212
- [x] Unit + integration tests (mock server) — TDD tests written and passing
@@ -15,9 +15,16 @@ Dependencies
1515
- Epic A endpoint in control-plane
1616

1717

18-
Status Update — 2025-10-14
18+
Status Update — 2025-10-14 (Final)
1919

20-
- TDD tests for `aether logs` written and passing: help/flags, mock text/json, follow/reconnect, container/since flags.
20+
- Implemented `aether logs` with flags: --app, --follow, --since, --container, --format=json|text, and optional --color.
21+
- Graceful reconnect loop with backoff; mock mode via env for CI (no network).
22+
- TDD tests green: help/flags, mock text/json, follow/reconnect, container/since flags.
23+
- Added CLI README documenting flags and env overrides.
24+
25+
Quick try
26+
- AETHER_LOGS_MOCK=1 aether logs --app demo --format text
27+
- AETHER_API_BASE=http://localhost:8080 aether logs --app demo --follow --since 5m
2128

2229
DoD
2330
- CLI command functional; documented in --help and README

0 commit comments

Comments
 (0)