summaryrefslogtreecommitdiff
path: root/src/bin/jvn.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-22 14:24:50 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-22 14:24:50 +0800
commit47bf9b75f6dd8c2d3c3f1fb947a16e0e055f49cf (patch)
treec767e331e68134e19caeeb03269525be7b4fe6e1 /src/bin/jvn.rs
parent53c26d656f975f93319dd432e409c1ea740ce06d (diff)
Add renderer system and implement status command
Diffstat (limited to 'src/bin/jvn.rs')
-rw-r--r--src/bin/jvn.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs
index 79a034b..9943ab4 100644
--- a/src/bin/jvn.rs
+++ b/src/bin/jvn.rs
@@ -53,13 +53,21 @@ async fn main() {
#[cfg(windows)]
colored::control::set_virtual_terminal(true).unwrap();
+ let renderer_override = special_argument!(args, "--renderer").unwrap_or("default".to_string());
+
let no_error_logs = special_flag!(args, "--no-error-logs");
let quiet = special_flag!(args, "--quiet") || special_flag!(args, "-q");
let help = special_flag!(args, "--help") || special_flag!(args, "-h");
let confirmed = special_flag!(args, "--confirm") || special_flag!(args, "-C");
// Process commands
- let render_result = match jv_cmd_process(args, JVCommandContext { help, confirmed }).await {
+ let render_result = match jv_cmd_process(
+ args,
+ JVCommandContext { help, confirmed },
+ renderer_override,
+ )
+ .await
+ {
Ok(result) => result,
Err(e) => {
if !no_error_logs {