We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 357d9e2 commit cfe4f86Copy full SHA for cfe4f86
crates/svm-rs/src/bin/svm-bin/install.rs
@@ -8,6 +8,10 @@ use semver::Version;
8
pub struct InstallCmd {
9
/// Solc versions to install.
10
pub versions: Vec<String>,
11
+
12
+ /// Run in headless mode without prompting for user input.
13
+ #[arg(long, default_value_t = false)]
14
+ pub headless: bool,
15
}
16
17
impl InstallCmd {
@@ -21,6 +25,9 @@ impl InstallCmd {
21
25
22
26
if installed_versions.contains(&version) {
23
27
println!("Solc {version} is already installed");
28
+ if self.headless {
29
+ continue;
30
+ }
24
31
let input: String = Input::new()
32
.with_prompt("Would you like to set it as the global version?")
33
.with_initial_text("Y")
0 commit comments