Skip to content

Commit

Permalink
Get package version from Cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
thebeanogamer committed May 9, 2021
1 parent 211a487 commit dc43e05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ractl"
version = "0.1.6"
version = "0.1.7"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ mod install;
use clap::{App, SubCommand};

fn main() {
let matches = App::new("ractfctl")
.version("0.1")
let matches = App::new(env!("CARGO_PKG_NAME"))
.version(env!("CARGO_PKG_VERSION"))
.author("RACTF Admins <admins@ractf.co.uk>")
.about("RACTF Admin CLI")
.subcommand(install::subcommand())
Expand Down

0 comments on commit dc43e05

Please sign in to comment.