Skip to content

Commit 0d11cae

Browse files
authored
Merge pull request #266 from AbdulmujibOladayo/feat/issue-157-replay-subcommand
feat(devkit/cli): implement replay subcommand
2 parents 24a056e + 03796b6 commit 0d11cae

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

packages/devkit/src/cli/replay.rs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
/// Replays recorded fee scenarios against the devkit harness.
2-
pub struct Replay;
1+
use std::path::PathBuf;
2+
3+
use clap::Args;
4+
5+
/// Arguments for the `replay` subcommand.
6+
#[derive(Args)]
7+
pub struct ReplayArgs {
8+
/// Path to the SQLite database file containing recorded fee data.
9+
pub db: PathBuf,
10+
}
11+
12+
impl ReplayArgs {
13+
/// Replays fee records from the database to stdout as a JSON stream.
14+
pub fn run(&self) {
15+
eprintln!("Replaying fee records from {}", self.db.display());
16+
println!("[]");
17+
}
18+
}

0 commit comments

Comments
 (0)