Skip to content

Add version information #553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 21, 2022
Merged
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
326 changes: 216 additions & 110 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/protocol-demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ base64 = "0.13.0"
clap = { version = "3.1.6", features = ["derive"] }
hex = "0.4.3"
log = "0.4.14"
mithril-common = { path = "../../mithril-common", features = ["allow_skip_signer_certification"]}
mithril-common = { path = "../../mithril-common", features = ["allow_skip_signer_certification"] }
rand_chacha = "0.3.1"
rand_core = "0.6.3"
serde = { version = "1.0", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions mithril-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "A Mithril Aggregator server"
[dependencies]
async-trait = "0.1.52"
chrono = "0.4"
clap = { version = "3.1.6", features = ["derive", "env"] }
clap = { version = "4.0", features = ["derive", "env", "cargo"] }
cloud-storage = "0.11.0"
config = "0.13.1"
flate2 = "1.0.23"
Expand All @@ -30,7 +30,7 @@ warp = "0.3"

[dev-dependencies]
httpmock = "0.6.6"
mithril-common = { path = "../mithril-common", features = ["test_only"]}
mithril-common = { path = "../mithril-common", features = ["test_only"] }
mockall = "0.11.0"
slog-term = "2.9.0"
tempfile = "3.3.0"
Expand Down
5 changes: 3 additions & 2 deletions mithril-aggregator/src/command_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ async fn do_first_launch_initialization_if_needed(

/// Mithril Aggregator Node
#[derive(Parser, Debug, Clone)]
#[command(version)]
pub struct MainOpts {
/// application main command
#[clap(subcommand)]
Expand All @@ -147,8 +148,8 @@ pub struct MainOpts {
pub run_mode: String,

/// Verbosity level
#[clap(short, long, parse(from_occurrences))]
pub verbose: usize,
#[clap(short, long, action = clap::ArgAction::Count)]
pub verbose: u8,

/// Directory of the Cardano node files
#[clap(long)]
Expand Down
4 changes: 2 additions & 2 deletions mithril-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "A Mithril Client"

[dependencies]
async-trait = "0.1.52"
clap = { version = "3.1.6", features = ["derive", "env"] }
clap = { version = "4.0", features = ["derive", "env"] }
cli-table = "0.4"
config = "0.13.1"
flate2 = "1.0.23"
Expand All @@ -27,7 +27,7 @@ tokio = { version = "1", features = ["full"] }

[dev-dependencies]
httpmock = "0.6.6"
mithril-common = { path = "../mithril-common", features = ["test_only"]}
mithril-common = { path = "../mithril-common", features = ["test_only"] }
mockall = "0.11.0"

[features]
Expand Down
5 changes: 3 additions & 2 deletions mithril-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use mithril_client::commands::{DownloadCommand, ListCommand, RestoreCommand, Sho
about = "This program downloads, checks and restores certified blockchain snapshots.",
long_about = None
)]
#[command(version)]
pub struct Args {
/// Available commands
#[clap(subcommand)]
Expand All @@ -28,8 +29,8 @@ pub struct Args {
run_mode: String,

/// Verbosity level (-v=warning, -vv=info, -vvv=debug).
#[clap(short, long, parse(from_occurrences))]
verbose: usize,
#[clap(short, long, action = clap::ArgAction::Count)]
verbose: u8,

/// Directory where configuration file is located.
#[clap(long, default_value = "./config")]
Expand Down
4 changes: 2 additions & 2 deletions mithril-signer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "A Mithril Signer"

[dependencies]
async-trait = "0.1.52"
clap = { version = "3.1.6", features = ["derive", "env"] }
clap = { version = "4.0", features = ["derive", "env"] }
config = "0.13.1"
hex = "0.4.3"
mithril-common = { path = "../mithril-common" }
Expand All @@ -25,7 +25,7 @@ tokio = { version = "1.17.0", features = ["full"] }

[dev-dependencies]
httpmock = "0.6.6"
mithril-common = { path = "../mithril-common", features = ["test_only"]}
mithril-common = { path = "../mithril-common", features = ["test_only"] }
mockall = "0.11.0"
slog-term = "2.9.0"

Expand Down
9 changes: 5 additions & 4 deletions mithril-signer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use mithril_signer::{
#[derive(Parser)]
#[clap(name = "mithril-signer")]
#[clap(about = "An implementation of a Mithril Signer", long_about = None)]
#[command(version)]
pub struct Args {
/// Run Mode
#[clap(short, long, env("RUN_MODE"), default_value = "dev")]
Expand All @@ -22,17 +23,17 @@ pub struct Args {
#[clap(
short,
long,
parse(from_occurrences),
help = "verbosity level, add more v to increase"
action = clap::ArgAction::Count,
help = "Verbosity level, add more v to increase"
)]
verbose: usize,
verbose: u8,

/// Configuration file location
#[clap(
short,
long,
default_value = "./config",
help = "directory where the configuration file is located"
help = "Directory where the configuration file is located"
)]
configuration_dir: PathBuf,
}
Expand Down