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