Skip to content

Commit

Permalink
Allow specifying export file via ESPUP_EXPORT_FILE (#403)
Browse files Browse the repository at this point in the history
* Allow specifying export file via ESPUP_EXPORT_FILE

* Add CHANGELOG.md entry for ESPUP_EXPORT_FILE
  • Loading branch information
sirhcel committed Dec 12, 2023
1 parent f59ef65 commit a311fb9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit a311fb9

Please sign in to comment.