Skip to content

Commit

Permalink
feat: add version subcommand (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillLillis authored Nov 18, 2024
1 parent 99a0b4b commit 9f28d49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asm-lsp/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ enum Commands {
GenConfig(GenerateArgs),
/// Print information about asm-lsp
Info,
/// Print the version number only
Version,
#[clap(hide(true))]
Run,
}
Expand Down Expand Up @@ -70,6 +72,7 @@ pub fn main() -> Result<()> {
std::process::exit(1);
}
}
Commands::Version => println!("{}", env!("CARGO_PKG_VERSION")),
Commands::Info => run_info(),
Commands::Run => run_lsp()?,
}
Expand Down

0 comments on commit 9f28d49

Please sign in to comment.