feat(db): reth db path CLI (#3272)

This commit is contained in:
Alexey Shekhirin
2023-06-20 16:50:35 +01:00
committed by GitHub
parent 8eeba4dcc8
commit 4c9e112a46

View File

@ -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(())