Skip to content

Commit

Permalink
Add a version number to template cli
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed Sep 11, 2024
1 parent f14d88b commit 2b64f48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/basic-template/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ anyhow ="1.0.82"
dotenv = "0.15.0"
generate-types = { path = "../generate-types" }
project-root = "0.2.2"
entropy-test-cli = { git="https://github.com/entropyxyz/entropy-core.git", branch = "master" }
entropy-test-cli = { git="https://github.com/entropyxyz/entropy-core.git", branch = "programs-version" }
4 changes: 2 additions & 2 deletions templates/basic-template/cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use colored::Colorize;
use entropy_test_cli::run_command;
use entropy_test_cli::{run_command, PROGRAM_VERSION_NUMBER};
use dotenv::dotenv;
use generate_types::generate_types;
use project_root::get_project_root;
Expand All @@ -11,7 +11,7 @@ async fn main() -> anyhow::Result<()> {
generate_types();
let config_interface = format!("{}/{{project-name}}_serialized_config_type.txt", get_project_root()?.to_string_lossy());
let aux_data_interface = format!("{}/{{project-name}}_serialized_aux_data_type.txt", get_project_root()?.to_string_lossy());
match run_command(Some(program.into()), Some(config_interface.into()), Some(aux_data_interface.into())).await {
match run_command(Some(program.into()), Some(config_interface.into()), Some(aux_data_interface.into()), Some(PROGRAM_VERSION_NUMBER)).await {
Ok(output) => {
println!("Success: {}", output.green());
Ok(())
Expand Down

0 comments on commit 2b64f48

Please sign in to comment.