summaryrefslogtreecommitdiff
path: root/src/bin/jv.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-12 14:28:08 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-12 14:28:08 +0800
commit0a95bae451c1847f4f0b9601e60959f4e8e6b669 (patch)
tree9e1cfad4f86a73176a4d738b28e7732b66fe5f97 /src/bin/jv.rs
parent8564c8f2177dec0c2c0c031d156347fa6b4485bc (diff)
Refactor display utilities
Diffstat (limited to 'src/bin/jv.rs')
-rw-r--r--src/bin/jv.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs
index c3dc4ca..0df6b32 100644
--- a/src/bin/jv.rs
+++ b/src/bin/jv.rs
@@ -21,7 +21,6 @@
// The new implementation is located in `jvn.rs`, please refer to it.
//
-use cli_utils::input::input_with_editor;
use colored::Colorize;
use just_enough_vcs::{
data::compile_info::CoreCompileInfo,
@@ -113,14 +112,13 @@ use std::{
};
use clap::{Parser, Subcommand};
-use cli_utils::{
+use cli_utils::legacy::{
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,
+ input::{confirm_hint, confirm_hint_or, input_with_editor, show_in_pager},
+ push_version, socket_addr_helper,
};
use just_enough_vcs::utils::tcp_connection::error::TcpTargetError;
use just_enough_vcs_cli::{
@@ -4035,7 +4033,7 @@ async fn start_update_editor(
for item in files {
let path = item.0.display().to_string();
let base_ver = item.1.to_string();
- let next_ver = push_version(&base_ver).unwrap_or(" ".to_string());
+ let next_ver = push_version::push_version(&base_ver).unwrap_or(" ".to_string());
table.push_item(vec![
path,
base_ver,