Skip to content

Commit cb781ca

Browse files
authoredFeb 3, 2025··
chore(deps): bump clap from 3.2.25 to 4.5.27 (#514)
1 parent d06dfff commit cb781ca

File tree

5 files changed

+121
-123
lines changed

5 files changed

+121
-123
lines changed
 

‎Cargo.lock

Lines changed: 115 additions & 116 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎examples/github/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ anyhow = "1.0"
99
graphql_client = { path = "../../graphql_client", features = ["reqwest-blocking"] }
1010
reqwest = { version = "0.12", features = ["json", "blocking"] }
1111
prettytable-rs = "^0.10.0"
12-
clap = { version = "^3.0", features = ["derive"] }
12+
clap = { version = "^4.0", features = ["derive"] }
1313
log = "^0.4"
1414
env_logger = "^0.5"

‎graphql_client_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ path = "src/main.rs"
1515
reqwest = { version = "0.12", features = ["json", "blocking"] }
1616
graphql_client = { version = "0.14.0", path = "../graphql_client", default-features = false, features = ["graphql_query_derive", "reqwest-blocking"] }
1717
graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.14.0" }
18-
clap = { version = "^3.0", features = ["derive"] }
18+
clap = { version = "^4.0", features = ["derive"] }
1919
serde = { version = "^1.0", features = ["derive"] }
2020
serde_json = "^1.0"
2121
log = "^0.4"

‎graphql_client_cli/src/introspection_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn construct_headers() -> HeaderMap {
100100
headers
101101
}
102102

103-
#[derive(Debug, PartialEq, Eq)]
103+
#[derive(Debug, PartialEq, Eq, Clone)]
104104
pub struct Header {
105105
name: String,
106106
value: String,

‎graphql_client_cli/src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ enum Cli {
2121
/// The URL of a GraphQL endpoint to introspect.
2222
schema_location: String,
2323
/// Where to write the JSON for the introspected schema.
24-
#[clap(parse(from_os_str))]
25-
#[clap(long = "output")]
24+
#[arg(long = "output")]
2625
output: Option<PathBuf>,
2726
/// Set the contents of the Authorization header.
28-
#[clap(long = "authorization")]
27+
#[arg(long = "authorization")]
2928
authorization: Option<String>,
3029
/// Specify custom headers.
3130
/// --header 'X-Name: Value'
32-
#[clap(long = "header")]
31+
#[arg(long = "header")]
3332
headers: Vec<introspection_schema::Header>,
3433
/// Disable ssl verification.
3534
/// Default value is false.

0 commit comments

Comments
 (0)
Please sign in to comment.