Skip to content

Commit

Permalink
fix: show default value when adding new one (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
yingjiehe-xyz authored Feb 4, 2025
1 parent dd55c42 commit 180dff9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/goose-cli/src/commands/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,14 @@ pub async fn configure_provider_dialog() -> Result<bool, Box<dyn Error>> {
.mask('▪')
.interact()?
} else {
cliclack::input(format!(
let mut input = cliclack::input(format!(
"Provider {} requires {}, please enter a value",
provider_meta.display_name, key.name
))
.interact()?
));
if key.default.is_some() {
input = input.default_input(&key.default.clone().unwrap());
}
input.interact()?
};

if key.secret {
Expand Down

0 comments on commit 180dff9

Please sign in to comment.