Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion packages/devkit/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,15 @@ impl MockArgs {
}

/// Developer toolkit for the Stellar fee tracker.
///
/// Use `--quiet` to suppress all output except errors (useful for scripting).
#[derive(Parser)]
#[command(name = "devkit", about = "Stellar fee tracker developer toolkit")]
pub struct Cli {
/// Suppress all output except errors and the final result.
#[arg(long, short = 'q', global = true)]
pub quiet: bool,

#[command(subcommand)]
pub command: Commands,
}
Expand All @@ -74,9 +80,46 @@ pub enum Commands {
/// Replay recorded fee scenarios
Replay,
/// Export data to external formats
Export,
Export {
/// Perform a dry run — show what would be written without writing it.
#[arg(long)]
dry_run: bool,
},
/// Run performance benchmarks
Benchmark,
/// Serve mock fee data
Mock,
/// Run devkit health checks
Health {
/// Output results as JSON.
#[arg(long)]
json: bool,
/// Path to the SQLite database to check.
#[arg(long, default_value = "stellar_fees.db")]
db_path: String,
/// Run only a specific named check.
#[arg(long)]
check: Option<String>,
},
/// Print the devkit metrics report
Metrics {
/// Output results as JSON.
#[arg(long)]
json: bool,
/// Reset all counters after displaying.
#[arg(long)]
reset: bool,
},
/// Detect and repair data quality issues in fee data
Repair {
/// Show what would be changed without applying any repairs.
#[arg(long)]
dry_run: bool,
/// Output the repair report as JSON.
#[arg(long)]
json: bool,
/// Only detect and report issues; do not plan repairs.
#[arg(long)]
check_only: bool,
},
}
1 change: 1 addition & 0 deletions packages/devkit/src/data_quality/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod repair;
Loading
Loading