From 4c9e112a4635391e633ba8cc8d327d76c19abb71 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Tue, 20 Jun 2023 16:50:35 +0100 Subject: [PATCH] feat(db): `reth db path` CLI (#3272) --- bin/reth/src/db/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/reth/src/db/mod.rs b/bin/reth/src/db/mod.rs index 4f3706ba1d..43051d07b6 100644 --- a/bin/reth/src/db/mod.rs +++ b/bin/reth/src/db/mod.rs @@ -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(())