Skip to content

Commit 97da62f

Browse files
authored
fix: fix aws tool description format (#665)
1 parent c193794 commit 97da62f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/q_cli/src/cli/chat/tools/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ impl Tool {
8383
Tool::FsRead(fs_read) => fs_read.queue_description(updates),
8484
Tool::FsWrite(fs_write) => fs_write.queue_description(ctx, updates),
8585
Tool::ExecuteBash(execute_bash) => execute_bash.queue_description(updates),
86-
Tool::UseAws(use_aws) => use_aws.show_readable_intention(updates),
86+
Tool::UseAws(use_aws) => use_aws.queue_description(updates),
8787
}
8888
}
8989

crates/q_cli/src/cli/chat/tools/use_aws.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl UseAws {
9696
}
9797
}
9898

99-
pub fn show_readable_intention(&self, updates: &mut impl Write) -> Result<()> {
99+
pub fn queue_description(&self, updates: &mut impl Write) -> Result<()> {
100100
queue!(
101101
updates,
102102
style::Print("Running aws cli command:\n"),
@@ -114,10 +114,10 @@ impl UseAws {
114114
queue!(updates, style::Print("Profile name: default\n".to_string()))?;
115115
}
116116

117-
queue!(updates, style::Print(format!("Region: {}\n", self.region)))?;
117+
queue!(updates, style::Print(format!("Region: {}", self.region)))?;
118118

119119
if let Some(ref label) = self.label {
120-
queue!(updates, style::Print(format!("Label: {}\n", label)))?;
120+
queue!(updates, style::Print(format!("\nLabel: {}", label)))?;
121121
}
122122
Ok(())
123123
}

0 commit comments

Comments
 (0)