top + report + log --follow (issues #37 #38) - top 10 par lancements, digest markdown hebdo/mensuel, suivi du journal en direct
This commit is contained in:
+21
@@ -162,6 +162,24 @@ pub enum Command {
|
||||
#[arg(long, value_name = "PERIOD")]
|
||||
period: Option<String>,
|
||||
},
|
||||
/// Show the most used agents (top 10)
|
||||
Top {
|
||||
/// Only events of the last period (7d, 30d, 90d, all)
|
||||
#[arg(long, value_name = "PERIOD")]
|
||||
period: Option<String>,
|
||||
},
|
||||
/// Write a markdown activity report
|
||||
Report {
|
||||
/// Cover the last 7 days
|
||||
#[arg(long, conflicts_with = "last_month")]
|
||||
last_week: bool,
|
||||
/// Cover the last 30 days
|
||||
#[arg(long)]
|
||||
last_month: bool,
|
||||
/// Output file (default: report-YYYYMMDD.md in the state directory)
|
||||
#[arg(long, value_name = "FILE")]
|
||||
output: Option<PathBuf>,
|
||||
},
|
||||
/// Show which agent works on which project
|
||||
Projects {
|
||||
/// Project name (omit to list every project)
|
||||
@@ -194,6 +212,9 @@ pub enum Command {
|
||||
/// Maximum number of events (default: 50)
|
||||
#[arg(long, value_name = "N", default_value = "50")]
|
||||
limit: usize,
|
||||
/// Follow the journal as new events arrive
|
||||
#[arg(long)]
|
||||
follow: bool,
|
||||
},
|
||||
/// Install an agent and its dependencies
|
||||
Install {
|
||||
|
||||
Reference in New Issue
Block a user