Update name to gitlore instead of gitlab-inbox

This commit is contained in:
teernisse
2026-01-28 15:49:10 -05:00
parent 9a6357c353
commit 55b895a2eb
31 changed files with 1046 additions and 373 deletions

View File

@@ -1,4 +1,4 @@
//! GitLab Inbox CLI entry point.
//! Gitlore CLI entry point.
use clap::Parser;
use console::style;
@@ -8,8 +8,8 @@ use tracing_subscriber::EnvFilter;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
use gi::Config;
use gi::cli::commands::{
use lore::Config;
use lore::cli::commands::{
InitInputs, InitOptions, ListFilters, MrListFilters, open_issue_in_browser, open_mr_in_browser,
print_count, print_count_json, print_doctor_results, print_ingest_summary,
print_ingest_summary_json, print_list_issues, print_list_issues_json, print_list_mrs,
@@ -18,11 +18,11 @@ use gi::cli::commands::{
run_doctor, run_ingest, run_init, run_list_issues, run_list_mrs, run_show_issue, run_show_mr,
run_sync_status,
};
use gi::cli::{Cli, Commands};
use gi::core::db::{create_connection, get_schema_version, run_migrations};
use gi::core::error::{GiError, RobotErrorOutput};
use gi::core::paths::get_config_path;
use gi::core::paths::get_db_path;
use lore::cli::{Cli, Commands};
use lore::core::db::{create_connection, get_schema_version, run_migrations};
use lore::core::error::{GiError, RobotErrorOutput};
use lore::core::paths::get_config_path;
use lore::core::paths::get_db_path;
#[tokio::main]
async fn main() {
@@ -37,7 +37,7 @@ async fn main() {
)
.with(
EnvFilter::from_default_env()
.add_directive("gi=info".parse().unwrap())
.add_directive("lore=info".parse().unwrap())
.add_directive("warn".parse().unwrap()),
)
.with(indicatif_layer)
@@ -326,7 +326,7 @@ async fn handle_init(
);
println!(
"{}",
style("\nSetup complete! Run 'gi doctor' to verify.").blue()
style("\nSetup complete! Run 'lore doctor' to verify.").blue()
);
Ok(())
@@ -612,7 +612,7 @@ fn handle_version(robot_mode: bool) -> Result<(), Box<dyn std::error::Error>> {
};
println!("{}", serde_json::to_string(&output)?);
} else {
println!("gi version {}", version);
println!("lore version {}", version);
}
Ok(())
}
@@ -641,7 +641,7 @@ fn handle_backup(robot_mode: bool) -> Result<(), Box<dyn std::error::Error>> {
};
println!("{}", serde_json::to_string(&output)?);
} else {
println!("gi backup - not yet implemented");
println!("lore backup - not yet implemented");
}
Ok(())
}
@@ -657,7 +657,7 @@ fn handle_reset(robot_mode: bool) -> Result<(), Box<dyn std::error::Error>> {
};
println!("{}", serde_json::to_string(&output)?);
} else {
println!("gi reset - not yet implemented");
println!("lore reset - not yet implemented");
}
Ok(())
}
@@ -702,7 +702,7 @@ async fn handle_migrate(
error: RobotErrorSuggestionData {
code: "DB_ERROR".to_string(),
message: format!("Database not found at {}", db_path.display()),
suggestion: "Run 'gi init' first".to_string(),
suggestion: "Run 'lore init' first".to_string(),
},
};
eprintln!("{}", serde_json::to_string(&output)?);
@@ -713,7 +713,7 @@ async fn handle_migrate(
);
eprintln!(
"{}",
style("Run 'gi init' first to create the database.").yellow()
style("Run 'lore init' first to create the database.").yellow()
);
}
std::process::exit(10); // DB_ERROR exit code