fix: switch default profile to terminal and fixed some comments
This commit is contained in:
1 parent
971375bf1f
commit
52787b57c7
71 files changed
+671
-188
No files matched your search
@@ -1,3 +1,5 @@
|
||||
// cli entry point and clap command definitions.
|
||||
// no subcommand = launch TUI, otherwise dispatch to the appropriate handler.
|
||||
mod account;
|
||||
mod content;
|
||||
mod import;
|
||||
@@ -12,7 +14,9 @@ use clap::{Arg, ArgAction, ArgGroup, Command};
|
||||
pub async fn init() {
|
||||
let matches = build_command().get_matches();
|
||||
|
||||
// no subcommand means the user just ran `mcl` bare, so fall through to TUI mode
|
||||
if matches.subcommand().is_none() {
|
||||
// force-init the theme so it's ready before the TUI renders
|
||||
let _ = &*crate::config::theme::THEME;
|
||||
if let Err(e) = crate::tui::show().await {
|
||||
tracing::error!("TUI error: {}", e);
|
||||
@@ -206,6 +210,7 @@ fn build_command() -> Command {
|
||||
)
|
||||
}
|
||||
|
||||
// mods, resource packs, and shaders all share the same list/enable/disable shape
|
||||
fn build_content_command(name: &'static str, about: &'static str) -> Command {
|
||||
Command::new(name)
|
||||
.about(format!("Manage {}", about))
|
||||
|
||||
Reference in new issue
Block a user