A command-line tool to convert handwritten notes to markdown files
fix: fixed a bug where active_provider was not being set when using --set-api-key
Tejas Raskarf5087626a853
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8f5b638..d07a263 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,5 +1,10 @@# Changelog+## [0.2.1]++### Fixed+- Fixed a bug where `active_provider` was not being set when using `--set-api-key` option.+## [0.2.0]### Addeddiff --git a/Cargo.lock b/Cargo.lockindex 7b6eb8e..dfd07f1 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -820,7 +820,7 @@ dependencies = [[[package]]name = "notedmd"-version = "0.2.0"+version = "0.2.1"dependencies = ["async-trait","base64",diff --git a/Cargo.toml b/Cargo.tomlindex 7538c91..9d5ce5b 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -1,6 +1,6 @@[package]name = "notedmd"-version = "0.2.0"+version = "0.2.1"edition = "2024"description = "A command-line tool to convert handwritten notes into a clean and readable Markdown file."license = "MIT"diff --git a/src/main.rs b/src/main.rsindex b93766f..060e07b 100644--- a/src/main.rs+++ b/src/main.rs@@ -126,6 +126,7 @@ async fn main() {if let Some(ref key) = set_api_key {let mut config = Config::load();+ config.active_provider = Some("gemini".to_string());config.gemini = Some(config::GeminiConfig {api_key: key.to_string(),});