Add self-analysis-stats to metrics

This commit is contained in:
Aleksey Kladov 2020-07-25 00:16:21 +02:00
parent a09a00a560
commit 101cdc57c2
2 changed files with 43 additions and 22 deletions

View file

@ -15,7 +15,7 @@ use xtask::{
codegen::{self, Mode},
dist::DistCmd,
install::{ClientOpt, InstallCmd, Malloc, ServerOpt},
metrics::run_metrics,
metrics::MetricsCmd,
not_bash::pushd,
pre_commit, project_root,
release::{PromoteCmd, ReleaseCmd},
@ -118,7 +118,11 @@ FLAGS:
args.finish()?;
DistCmd { nightly, client_version }.run()
}
"metrics" => run_metrics(),
"metrics" => {
let dry_run = args.contains("--dry-run");
args.finish()?;
MetricsCmd { dry_run }.run()
}
_ => {
eprintln!(
"\