mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat(db): reth db path CLI (#3272)
This commit is contained in:
@ -72,6 +72,8 @@ pub enum Subcommands {
|
|||||||
Drop,
|
Drop,
|
||||||
/// Lists current and local database versions
|
/// Lists current and local database versions
|
||||||
Version,
|
Version,
|
||||||
|
/// Returns the full database path
|
||||||
|
Path,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
@ -243,6 +245,9 @@ impl Command {
|
|||||||
println!("Local database is uninitialized");
|
println!("Local database is uninitialized");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Subcommands::Path => {
|
||||||
|
println!("{}", db_path.display());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user