Skip to content

Commit

Permalink
Changed the name of the esp_idf.json to eim_idf.json (#79)
Browse files Browse the repository at this point in the history
* Changed the name of the esp_idf.json to eim_idf.json

* updated help

---------

Co-authored-by: Petr Gadorek <[email protected]>
  • Loading branch information
Hahihula and Petr Gadorek authored Dec 11, 2024
1 parent 82a8773 commit 7d1a03d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 8 deletions.
55 changes: 50 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
tokio = {version = "1.37.0", features=["full"]}
idf-im-lib = { git = "https://github.com/espressif/idf-im-lib.git", tag="v0.1.8" }
idf-im-lib = { git = "https://github.com/espressif/idf-im-lib.git", tag="v0.1.9" }
clap = {version = "4.5", features = ["cargo", "derive", "color"]}
crossterm = "0.27.0"
dialoguer = { git = "https://github.com/Hahihula/dialoguer.git", branch = "folder-select", features = ["folder-select"] }
Expand Down
2 changes: 1 addition & 1 deletion src/cli_args/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct Cli {

#[arg(
long,
help = "Absolute path to save esp_idf.json file. Default is $HOME/.esp_installation_manager/esp_idf.json"
help = "Absolute path to save eim_idf.json file. Default is $HOME/.espressif/tools/eim_idf.json on POSIX systems and C:\\Espressif\\tools\\eim_idf.json on Windows systems"
)]
esp_idf_json_path: Option<String>,

Expand Down
9 changes: 8 additions & 1 deletion src/wizard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,15 @@ pub async fn run_wizzard_run(mut config: Settings) -> Result<(), String> {
return Err(err.to_string());
}
}
// TODO: stop using useless param
let ide_conf_path = ide_conf_path_tmp.join("esp_ide.json");
config.save_esp_ide_json(ide_conf_path.to_str().unwrap())?;
match config.save_esp_ide_json(ide_conf_path.to_str().unwrap()) {
Ok(_) => debug!("IDE configuration saved to: {}", ide_conf_path.display()),
Err(err) => {
error!("Failed to save IDE configuration: {}", err);
return Err(err.to_string());
}
};

match std::env::consts::OS {
"windows" => {
Expand Down

0 comments on commit 7d1a03d

Please sign in to comment.