Skip to content
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

Downgrade clap #84

Merged
merged 5 commits into from Mar 15, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/hearth-client/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "AGPL-3.0-or-later"

[dependencies]
clap = { version= "4", features = ["derive"] }
clap = { version= "3.2", features = ["derive"] }
hearth-cognito = { workspace = true }
hearth-core = { workspace = true }
hearth-ipc = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/hearth-client/src/main.rs
Expand Up @@ -33,11 +33,11 @@ use tracing::{debug, error, info};
pub struct Args {
/// IP address and port of the server to connect to.
// TODO support DNS resolution too
#[arg(short, long)]
#[clap(short, long)]
pub server: String,

/// Password to use to authenticate to the server. Defaults to empty.
#[arg(short, long, default_value = "")]
#[clap(short, long, default_value = "")]
pub password: String,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/hearth-ctl/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "AGPL-3.0-or-later"

[dependencies]
clap = { version = "4.1", features = ["derive"] }
clap = { version = "3.2", features = ["derive"] }
hearth-ipc = { workspace = true }
hearth-rpc = { workspace = true }
tokio = { version = "1.24", features = ["macros", "net", "rt"] }
2 changes: 1 addition & 1 deletion crates/hearth-ctl/src/list_processes.rs
Expand Up @@ -23,7 +23,7 @@ use hearth_types::PeerId;
/// Lists proccesses of either a singular peer or all peers in the space.
#[derive(Debug, Parser)]
pub struct ListProcesses {
#[arg(short, long, default_value = None)]
#[clap(short, long)]
pub peer: Option<MaybeAllPeerId>,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/hearth-ctl/src/main.rs
Expand Up @@ -25,7 +25,7 @@ mod list_processes;
/// Command-line interface (CLI) for interacting with a Hearth daemon over IPC.
#[derive(Debug, Parser)]
pub struct Args {
#[command(subcommand)]
#[clap(subcommand)]
pub command: Commands,
}

Expand Down
2 changes: 1 addition & 1 deletion crates/hearth-server/Cargo.toml
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "AGPL-3.0-or-later"

[dependencies]
clap = { version = "4", features = ["derive"] }
clap = { version = "3.2", features = ["derive"] }
hearth-cognito = { workspace = true }
hearth-core = { workspace = true }
hearth-ipc = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/hearth-server/src/main.rs
Expand Up @@ -37,11 +37,11 @@ pub const SELF_PEER_ID: PeerId = PeerId(0);
#[derive(Parser, Debug)]
pub struct Args {
/// IP address and port to listen on.
#[arg(short, long)]
#[clap(short, long)]
pub bind: Option<SocketAddr>,

/// Password to use to authenticate with clients. Defaults to empty.
#[arg(short, long, default_value = "")]
#[clap(short, long, default_value = "")]
pub password: String,
}

Expand Down