diff options
Diffstat (limited to 'src/bin/jv.rs')
| -rw-r--r-- | src/bin/jv.rs | 21 |
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(); |
