summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jv.rs10
-rw-r--r--src/bin/jvii.rs6
-rw-r--r--src/bin/jvn.rs4
-rw-r--r--src/bin/jvv.rs2
4 files changed, 10 insertions, 12 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,
diff --git a/src/bin/jvii.rs b/src/bin/jvii.rs
index 2f9cb6d..fbc3ed9 100644
--- a/src/bin/jvii.rs
+++ b/src/bin/jvii.rs
@@ -5,9 +5,9 @@ use std::path::PathBuf;
use std::time::Duration;
use clap::Parser;
-use cli_utils::display::display_width;
-use cli_utils::display::md;
-use cli_utils::env::current_locales;
+use cli_utils::legacy::display::display_width;
+use cli_utils::legacy::display::md;
+use cli_utils::legacy::env::current_locales;
use crossterm::{
QueueableCommand,
cursor::MoveTo,
diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs
index f2c5cf6..f45c78b 100644
--- a/src/bin/jvn.rs
+++ b/src/bin/jvn.rs
@@ -1,6 +1,6 @@
use std::{ops::Deref, process::exit};
-use cli_utils::{display::md, env::current_locales, levenshtein_distance::levenshtein_distance};
+use cli_utils::legacy::{display::md, env::current_locales, levenshtein_distance};
use just_enough_vcs_cli::{
special_argument, special_flag,
systems::{
@@ -197,7 +197,7 @@ fn handle_no_matching_command_error(args: Vec<String>) {
continue;
}
let args_str = args[..node_len].join(" ");
- let distance = levenshtein_distance(args_str.as_str(), node.as_str());
+ let distance = levenshtein_distance::levenshtein_distance(args_str.as_str(), node.as_str());
if distance <= 2 {
similar_nodes.push(node);
}
diff --git a/src/bin/jvv.rs b/src/bin/jvv.rs
index 335e374..885f3e0 100644
--- a/src/bin/jvv.rs
+++ b/src/bin/jvv.rs
@@ -22,7 +22,7 @@
//
use clap::{Parser, Subcommand};
-use cli_utils::{
+use cli_utils::legacy::{
display::{md, size_str},
env::current_locales,
logger::build_env_logger,