-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refac: Use cargo version as CLI version
- Loading branch information
1 parent
f1fd1a3
commit a39997a
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,12 @@ pub const POST_INSTALL_SCRIPTLET_ARG: &str = "post-install-script"; | |
pub const PRE_UNINSTALL_SCRIPTLET_ARG: &str = "pre-uninstall-script"; | ||
pub const POST_UNINSTALL_SCRIPTLET_ARG: &str = "post-uninstall-script"; | ||
pub const SIGN_WITH_PGP_ASC_ARG: &str = "sign-with-pgp-asc"; | ||
const VERSION: &'static str = env!("CARGO_PKG_VERSION"); | ||
|
||
pub fn build_cli() -> App<'static, 'static> { | ||
let supported_compression_options = ["gzip", "none"]; | ||
App::new("rpm-builder") | ||
.version("0.6.0") | ||
.version(VERSION) | ||
.author("René R. <[email protected]>") | ||
.about("Build rpms with ease") | ||
.arg(Arg::with_name(OUT_ARG) | ||
|