Skip to content

Commit 07b5886

Browse files
committed
add version back to cli options
Signed-off-by: karthik2804 <[email protected]>
1 parent 3a7580c commit 07b5886

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

crates/spin-js-cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ name = "spinjs"
88
path = "src/main.rs"
99

1010
[dependencies]
11-
wizer = "3.0.0"
12-
clap = { version = "4.1.4", features = [ "derive" ] }
1311
anyhow = "1.0"
14-
tempfile = "3.2.0"
1512
binaryen = { git = "https://github.com/pepyakin/binaryen-rs" }
13+
clap = { version = "4.1.4", features = [ "derive" ] }
14+
tempfile = "3.2.0"
15+
wizer = "3.0.0"

crates/spin-js-cli/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ use {
1414
wizer::Wizer,
1515
};
1616

17+
const VERSION: &str = env!("CARGO_PKG_VERSION");
18+
1719
#[derive(Debug, Parser)]
1820
#[clap(
1921
name = "js2wasm",
20-
about = "A spin plugin to convert javascript files to Spin compatible modules"
22+
about = "A spin plugin to convert javascript files to Spin compatible modules",
23+
version = VERSION
2124
)]
2225
pub struct Options {
2326
pub input: PathBuf,

0 commit comments

Comments
 (0)