Skip to content

Commit ffb544f

Browse files
committed
add rustfmt config delimiting
1 parent 76e5070 commit ffb544f

File tree

3 files changed

+7
-71
lines changed

3 files changed

+7
-71
lines changed

Cargo.lock

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

ci/check_diff/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ edition = "2021"
77

88
[dependencies]
99
clap = { version = "4.5.4", features = ["derive"] }
10-
url = "2.5.0"

ci/check_diff/src/main.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
use clap::Parser;
2-
use url::Url;
32
/// Inputs for the check_diff script
43
#[derive(Parser)]
54
struct CliInputs {
65
/// URL to remote repo
7-
remote_repo_url: Url,
6+
remote_repo_url: String,
87
/// The path to the file to read
98
feature_branch: String,
109
optional_commit_hash: Option<String>,
11-
optional_rustfmt_config: Option<Vector<String>>,
10+
#[clap(value_delimiter = ',', num_args = 1..)]
11+
optional_rustfmt_config: Option<Vec<String>>,
1212
}
1313

1414
fn main() {
1515
let args = CliInputs::parse();
16+
println!(
17+
"remote_repo_url: {:?}, feature_branch: {:?}, optional_commit_hash: {:?}, optional_rustfmt_config: {:?}" ,
18+
args.remote_repo_url, args.feature_branch, args.optional_commit_hash, args.optional_rustfmt_config
19+
)
1620
}

0 commit comments

Comments
 (0)