surrealpatch/src/cli/version.rs

11 lines
417 B
Rust
Raw Normal View History

use crate::cnf::PKG_NAME;
use crate::cnf::PKG_VERS;
2022-02-16 23:45:23 +00:00
use crate::err::Error;
2020-06-29 15:36:01 +00:00
pub fn init(_: &clap::ArgMatches) -> Result<(), Error> {
get_cfg!(target_os: "windows", "macos", "ios", "linux", "android", "freebsd", "openbsd", "netbsd");
get_cfg!(target_arch: "x86", "x86_64", "mips", "powerpc", "powerpc64", "arm", "aarch64");
println!("{} {} for {} on {}", PKG_NAME, *PKG_VERS, target_os(), target_arch());
2020-06-29 15:36:01 +00:00
Ok(())
}