info: print location of sessions.db via goose info (#5557)

This commit is contained in:
Alex Hancock
2025-11-03 17:03:28 -05:00
committed by GitHub
parent 69e083ec1d
commit 2c1e52c3c2
+2 -1
View File
@@ -11,6 +11,7 @@ fn print_aligned(label: &str, value: &str, width: usize) {
pub fn handle_info(verbose: bool) -> Result<()> {
let logs_dir = Paths::in_state_dir("logs");
let sessions_dir = Paths::in_data_dir("sessions");
let sessions_db = sessions_dir.join("sessions.db");
// Get paths using a stored reference to the global config
let config = Config::global();
@@ -19,7 +20,7 @@ pub fn handle_info(verbose: bool) -> Result<()> {
// Define the labels and their corresponding path values once.
let paths = [
("Config dir:", config_dir),
("Sessions dir:", sessions_dir.display().to_string()),
("Sessions DB (sqlite):", sessions_db.display().to_string()),
("Logs dir:", logs_dir.display().to_string()),
];