Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Feb 5, 2025
1 parent 158a1ad commit 4d4973d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion devenv/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ pub enum Commands {

// https://consoledonottrack.com/
#[clap(long, env = "DO_NOT_TRACK", action = clap::ArgAction::SetTrue)]
disable_analytics: bool,
disable_telemetry: bool,
},

#[command(about = "Activate the developer environment. https://devenv.sh/basics/")]
Expand Down
4 changes: 2 additions & 2 deletions devenv/src/devenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ impl Devenv {
description: Option<String>,
host: &str,
exclude: Vec<PathBuf>,
disable_analytics: bool,
disable_telemetry: bool,
) -> Result<()> {
let client = reqwest::Client::new();
let mut request = client
.post(host)
.query(&[("disable_analytics", disable_analytics)])
.query(&[("disable_telemetry", disable_telemetry)])
.header(reqwest::header::USER_AGENT, crate_version!());

let (asyncwriter, asyncreader) = tokio::io::duplex(256 * 1024);
Expand Down
4 changes: 2 additions & 2 deletions devenv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async fn main() -> Result<()> {
description,
host,
exclude,
disable_analytics,
disable_telemetry,
} => {
devenv
.generate(
Expand All @@ -147,7 +147,7 @@ async fn main() -> Result<()> {
},
&host,
exclude,
disable_analytics,
disable_telemetry,
)
.await
}
Expand Down

0 comments on commit 4d4973d

Please sign in to comment.