summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-03 15:09:58 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-03 15:09:58 +0800
commit599b1b7d9f657ed9c36bdcbece8c771db4422bab (patch)
tree494075dea778716316994e19d13bd94b8e5d9aab /src
parent5b04d567c4ba88f3236218cf0f23b52bffdde1a4 (diff)
Add info command to display file details
Diffstat (limited to 'src')
-rw-r--r--src/bin/jv.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs
index 09dfae2..128c910 100644
--- a/src/bin/jv.rs
+++ b/src/bin/jv.rs
@@ -143,6 +143,9 @@ enum JustEnoughVcsWorkspaceCommand {
#[command(alias = "s")]
Status(StatusArgs),
+ /// Display detailed information about the specified file
+ Info(InfoArgs),
+
// Sheet management
/// Manage sheets in the workspace
#[command(subcommand, alias = "sh")]
@@ -460,6 +463,15 @@ struct StatusArgs {
}
#[derive(Parser, Debug)]
+struct InfoArgs {
+ /// Show help information
+ #[arg(short, long)]
+ help: bool,
+
+ file_pattern: Option<String>,
+}
+
+#[derive(Parser, Debug)]
struct AccountAddArgs {
/// Show help information
#[arg(short, long)]
@@ -1022,6 +1034,13 @@ async fn main() {
}
jv_status(status_args).await;
}
+ JustEnoughVcsWorkspaceCommand::Info(info_args) => {
+ if info_args.help {
+ println!("{}", md(t!("jv.info")));
+ return;
+ }
+ jv_info(info_args).await;
+ }
JustEnoughVcsWorkspaceCommand::Sheet(sheet_manage) => match sheet_manage {
SheetManage::Help => {
println!("{}", md(t!("jv.sheet")));
@@ -1983,6 +2002,8 @@ async fn jv_status(_args: StatusArgs) {
}
}
+async fn jv_info(args: InfoArgs) {}
+
async fn jv_sheet_list(args: SheetListArgs) {
let _ = correct_current_dir();