summaryrefslogtreecommitdiff
path: root/src/bin/jv.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-27 06:02:59 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-27 06:02:59 +0800
commit4eef9ce364bb660421a96052a3fb126a33b22c63 (patch)
treea36947411d83205dc743881cd2a30d8c907d4b57 /src/bin/jv.rs
parent243d521fd19af169910506529e737a797e9bc583 (diff)
Extract CLI utilities into a separate crate
Diffstat (limited to 'src/bin/jv.rs')
-rw-r--r--src/bin/jv.rs19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs
index a0de5a8..9593c9d 100644
--- a/src/bin/jv.rs
+++ b/src/bin/jv.rs
@@ -1,3 +1,4 @@
+use cli_utils::input::input_with_editor;
use colored::Colorize;
use just_enough_vcs::{
data::compile_info::CoreCompileInfo,
@@ -92,6 +93,15 @@ use std::{
};
use clap::{Parser, Subcommand};
+use cli_utils::{
+ display::{SimpleTable, display_width, md, render_share_path_tree, size_str},
+ env::{auto_update_outdate, current_locales, enable_auto_update},
+ fs::move_across_partitions,
+ globber::{GlobItem, Globber},
+ input::{confirm_hint, confirm_hint_or, show_in_pager},
+ push_version::push_version,
+ socket_addr_helper,
+};
use just_enough_vcs::utils::tcp_connection::error::TcpTargetError;
use just_enough_vcs_cli::{
data::{
@@ -107,15 +117,6 @@ use just_enough_vcs_cli::{
share::{SeeShareResult, ShareItem, ShareListResult},
sheets::{SheetItem, SheetListJsonResult},
},
- utils::{
- display::{SimpleTable, display_width, md, render_share_path_tree, size_str},
- env::{auto_update_outdate, current_locales, enable_auto_update},
- fs::move_across_partitions,
- globber::{GlobItem, Globber},
- input::{confirm_hint, confirm_hint_or, input_with_editor, show_in_pager},
- push_version::push_version,
- socket_addr_helper,
- },
};
use rust_i18n::{set_locale, t};
use tokio::{