mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-27 04:40:27 +00:00
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:
parent
f59ef6593d
commit
a311fb9d0a
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user