Skip to content

Commit

Permalink
Add a version number to template cli (#91)
Browse files Browse the repository at this point in the history
* Add a version number to template cli

* update to master branch
  • Loading branch information
JesseAbram authored Sep 16, 2024
1 parent f14d88b commit 95eeb23
Showing 1 changed file with 2 additions and 2 deletions.
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 95eeb23

Please sign in to comment.