Skip to content

Commit

Permalink
move sails-js-cli version to const
Browse files Browse the repository at this point in the history
  • Loading branch information
osipov-mit committed Sep 12, 2024
1 parent 1815e68 commit c9633de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rs/cli/src/js.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use anyhow::Result;
use std::process::Command;

const SAILS_JS_CLI_VERSION: &str = "0.1.0";

pub struct JsClientGenerator {
idl_path: String,
out_path: String,
Expand All @@ -25,7 +27,7 @@ impl JsClientGenerator {
let idl_path = self.idl_path.clone();

let mut child = Command::new("npx")
.arg("sails-js-cli@0.1.0")
.arg(format!("sails-js-cli@{}", SAILS_JS_CLI_VERSION))
.arg("generate")
.arg(idl_path)
.arg("-o")
Expand Down

0 comments on commit c9633de

Please sign in to comment.