Allow specifying export file via ESPUP_EXPORT_FILE (#403)

* Allow specifying export file via ESPUP_EXPORT_FILE

* Add CHANGELOG.md entry for ESPUP_EXPORT_FILE
This commit is contained in:
Christian Meusel 2023-12-12 10:32:07 +01:00 committed by GitHub
parent f59ef6593d
commit a311fb9d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added support for specifying the location of the export file via `ESPUP_EXPORT_FILE` (#403)
### Fixed
### Changed

View File

@ -15,7 +15,7 @@ rust-version = "1.70"
[dependencies]
async-trait = "0.1.74"
clap = { version = "4.4.11", features = ["derive"] }
clap = { version = "4.4.11", features = ["derive", "env"] }
clap_complete = "4.4.4"
console = "0.15.7"
directories = "5.0.1"

View File

@ -143,6 +143,8 @@ Options:
-f, --export-file <EXPORT_FILE>
Relative or full path for the export file that will be generated. If no path is provided, the file will be generated under home directory (https://docs.rs/dirs/latest/dirs/fn.home_dir.html)
[env: ESPUP_EXPORT_FILE=]
-e, --extended-llvm
Extends the LLVM installation.
@ -209,6 +211,8 @@ Options:
-f, --export-file <EXPORT_FILE>
Relative or full path for the export file that will be generated. If no path is provided, the file will be generated under home directory (https://docs.rs/dirs/latest/dirs/fn.home_dir.html)
[env: ESPUP_EXPORT_FILE=]
-e, --extended-llvm
Extends the LLVM installation.

View File

@ -25,7 +25,7 @@ pub struct InstallOpts {
#[arg(short = 'r', long)]
pub esp_riscv_gcc: bool,
/// Relative or full path for the export file that will be generated. If no path is provided, the file will be generated under home directory (https://docs.rs/dirs/latest/dirs/fn.home_dir.html).
#[arg(short = 'f', long)]
#[arg(short = 'f', long, env = "ESPUP_EXPORT_FILE")]
pub export_file: Option<PathBuf>,
/// Extends the LLVM installation.
///