feat: phase 2 — am web : dashboard web local + API JSON (contrats --json, 127.0.0.1, tiny_http, frontend embarqué) (closes #54)
This commit is contained in:
+19
@@ -299,6 +299,25 @@ pub static HELP_SPECS: &[HelpSpec] = &[
|
||||
HelpExample { desc: "JSON stream for scripts.", code: "monitor --json --interval 10" },
|
||||
],
|
||||
},
|
||||
HelpSpec {
|
||||
name: "web",
|
||||
category: "Commands",
|
||||
usage: "web {flags}",
|
||||
about: "Local read-only web dashboard: overview, charts, sessions, events, projects (issue #54). Serves an embedded page and a JSON API with the same stable contracts as the CLI --json outputs; bound to 127.0.0.1 only.",
|
||||
search_terms: &["web", "dashboard", "html", "http", "api", "graph", "chart", "navigateur", "browser", "port"],
|
||||
flags: &[
|
||||
HelpFlag { short: "", long: "--port", value: "PORT", desc: "Port to listen on (default 7878)" },
|
||||
HelpFlag { short: "", long: "--no-open", value: "", desc: "Do not open the browser automatically" },
|
||||
],
|
||||
subcommands: &[],
|
||||
parameters: &[],
|
||||
io: None,
|
||||
examples: &[
|
||||
HelpExample { desc: "Open the dashboard in the browser.", code: "web" },
|
||||
HelpExample { desc: "Serve on another port, no browser.", code: "web --port 9090 --no-open" },
|
||||
HelpExample { desc: "API routes: /api/health, /api/overview, /api/stats, /api/sessions, /api/events, /api/projects.", code: "curl http://127.0.0.1:7878/api/health" },
|
||||
],
|
||||
},
|
||||
HelpSpec {
|
||||
name: "history",
|
||||
category: "Commands",
|
||||
|
||||
Reference in New Issue
Block a user