mirror of
https://github.com/esp-rs/espflash.git
synced 2026-03-13 17:37:49 +00:00
Allow skipping the update checks using an environment variable (#900)
* Allow skipping the update checks using an environment variable * Update `CHANGELOG.md`
This commit is contained in:
parent
f12ecf363d
commit
29371c32f7
@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Add a `check-app-descriptor` bool option to `ImageArgs` and add the flag to `flash` command (#872)
|
||||
- `Connection::into_serial` to get the underlying port from the connection (#882)
|
||||
- All methods on the now removed `Target` & `ReadEFuse`, `UsbOtg` and `RtcWdtReset` traits have been implemented directly on (#891)
|
||||
- Update checks can now be skipped by setting the the `ESPFLASH_SKIP_UPDATE_CHECK` environment variable (#900)
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
@ -57,7 +57,13 @@ enum CargoSubcommand {
|
||||
subcommand: Commands,
|
||||
|
||||
/// Do not check for updates
|
||||
#[clap(short = 'S', long, global = true, action)]
|
||||
#[clap(
|
||||
short = 'S',
|
||||
long,
|
||||
global = true,
|
||||
env = "ESPFLASH_SKIP_UPDATE_CHECK",
|
||||
action
|
||||
)]
|
||||
skip_update_check: bool,
|
||||
},
|
||||
}
|
||||
|
||||
@ -30,7 +30,13 @@ pub struct Cli {
|
||||
subcommand: Commands,
|
||||
|
||||
/// Do not check for updates
|
||||
#[clap(short = 'S', long, global = true, action)]
|
||||
#[clap(
|
||||
short = 'S',
|
||||
long,
|
||||
global = true,
|
||||
env = "ESPFLASH_SKIP_UPDATE_CHECK",
|
||||
action
|
||||
)]
|
||||
skip_update_check: bool,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user