67435e9cdf
* added a global flag to disable the printed out banner inside tty * added a 'build-info' command to our binaries * added binary name to BinaryBuildInformation * clippy
17 lines
449 B
Rust
17 lines
449 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use clap::Args;
|
|
use nym_bin_common::bin_info_owned;
|
|
use nym_bin_common::output_format::OutputFormat;
|
|
|
|
#[derive(Args)]
|
|
pub(crate) struct BuildInfo {
|
|
#[clap(short, long, default_value_t = OutputFormat::default())]
|
|
output: OutputFormat,
|
|
}
|
|
|
|
pub(crate) fn execute(args: BuildInfo) {
|
|
println!("{}", args.output.format(&bin_info_owned!()))
|
|
}
|