Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cb-metrics = { path = "crates/metrics" }
cb-pbs = { path = "crates/pbs" }
cb-signer = { path = "crates/signer" }
cipher = "0.4"
clap = { version = "4.5.4", features = ["derive", "env"] }
clap = { version = "4.5.48", features = ["derive", "env"] }
color-eyre = "0.6.3"
ctr = "0.9.2"
derive_more = { version = "2.0.1", features = ["deref", "display", "from", "into"] }
Expand Down
12 changes: 12 additions & 0 deletions bin/cli.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
use clap::Parser;

/// Version string with a leading 'v'
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));

/// Subcommands and global arguments for the module
#[derive(Parser, Debug)]
#[command(name = "Commit-Boost CLI", version = VERSION, about, long_about = None)]
struct Cli {}

/// Main entry point of the Commit-Boost CLI
#[tokio::main]
async fn main() -> eyre::Result<()> {
// Parse the CLI arguments (currently only used for version info, more can be
// added later)
let _cli = Cli::parse();

color_eyre::install()?;
// set default backtrace unless provided

Expand Down
12 changes: 12 additions & 0 deletions bin/pbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ use clap::Parser;
use eyre::Result;
use tracing::{error, info};

/// Version string with a leading 'v'
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));

/// Subcommands and global arguments for the module
#[derive(Parser, Debug)]
#[command(name = "Commit-Boost PBS Service", version = VERSION, about, long_about = None)]
struct Cli {}

#[tokio::main]
async fn main() -> Result<()> {
// Parse the CLI arguments (currently only used for version info, more can be
// added later)
let _cli = Cli::parse();

color_eyre::install()?;

let _guard = initialize_tracing_log(PBS_MODULE_NAME, LogsSettings::from_env_config()?);
Expand Down
12 changes: 12 additions & 0 deletions bin/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@ use clap::Parser;
use eyre::Result;
use tracing::{error, info};

/// Version string with a leading 'v'
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));

/// Subcommands and global arguments for the module
#[derive(Parser, Debug)]
#[command(name = "Commit-Boost Signer Service", version = VERSION, about, long_about = None)]
struct Cli {}

#[tokio::main]
async fn main() -> Result<()> {
// Parse the CLI arguments (currently only used for version info, more can be
// added later)
let _cli = Cli::parse();

color_eyre::install()?;

let _guard = initialize_tracing_log(SIGNER_MODULE_NAME, LogsSettings::from_env_config()?);
Expand Down
Loading