mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05: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