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:
+13
@@ -273,6 +273,8 @@ pub enum Command {
|
||||
#[arg(long, action = ArgAction::SetTrue)]
|
||||
json: bool,
|
||||
},
|
||||
/// Local read-only web dashboard with charts (issue #54)
|
||||
Web(WebArgs),
|
||||
/// Push the state into the configured git repository (issue #66)
|
||||
Sync {
|
||||
/// Commit message (default: "am sync — state update")
|
||||
@@ -606,6 +608,17 @@ pub struct PluginsArgs {
|
||||
pub test: Option<String>,
|
||||
}
|
||||
|
||||
/// Arguments of the web command (issue #54).
|
||||
#[derive(Args, Debug, Clone, Default)]
|
||||
pub struct WebArgs {
|
||||
/// Port to listen on (default 7878)
|
||||
#[arg(long, value_name = "PORT")]
|
||||
pub port: Option<u16>,
|
||||
/// Do not open the browser automatically
|
||||
#[arg(long, action = ArgAction::SetTrue)]
|
||||
pub no_open: bool,
|
||||
}
|
||||
|
||||
/// Remote catalog subcommands (issues #60 #67).
|
||||
#[derive(Subcommand, Debug, Clone)]
|
||||
pub enum CatalogCmd {
|
||||
|
||||
Reference in New Issue
Block a user