Skip to content

Commit

Permalink
now getting version number via env
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Alexander Weber committed May 26, 2020
1 parent 873e685 commit ea66253
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ init:

update-version:
sed 's/version = "0.0.0"/version = "$(VERSION)"/g' Cargo.toml > Cargo.toml.tmp
sed 's/.version("0.0.0")/.version("$(VERSION)")/g' src/args/mod.rs > src/args/mod.rs.tmp
mv Cargo.toml.tmp Cargo.toml
mv src/args/mod.rs.tmp src/args/mod.rs

clean:
cargo clean
Expand Down
2 changes: 1 addition & 1 deletion src/args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct ClapArgumentLoader {}
impl ClapArgumentLoader {
pub async fn load_from_cli() -> std::io::Result<Command> {
let command = clap::App::new("complate")
.version("0.0.0")
.version(env!("CARGO_PKG_VERSION"))
.about("A git commit buddy.")
.author("Weber, Heiko Alexander <[email protected]>")
.subcommand(clap::App::new("init"))
Expand Down

0 comments on commit ea66253

Please sign in to comment.