feat: add write approve mode (#1628)
This commit is contained in:
@@ -77,7 +77,7 @@ impl GooseCompleter {
|
||||
|
||||
/// Complete flags for the /mode command
|
||||
fn complete_mode_flags(&self, line: &str) -> Result<(usize, Vec<Pair>)> {
|
||||
let modes = ["auto", "approve", "chat"];
|
||||
let modes = ["auto", "approve", "write_approve", "chat"];
|
||||
|
||||
let parts: Vec<&str> = line.split_whitespace().collect();
|
||||
|
||||
|
||||
@@ -335,7 +335,7 @@ impl Session {
|
||||
let mode = mode.to_lowercase();
|
||||
|
||||
// Check if mode is valid
|
||||
if !["auto", "approve", "chat"].contains(&mode.as_str()) {
|
||||
if !["auto", "approve", "chat", "write_approve"].contains(&mode.as_str()) {
|
||||
output::render_error(&format!(
|
||||
"Invalid mode '{}'. Mode must be one of: auto, approve, chat",
|
||||
mode
|
||||
|
||||
Reference in New Issue
Block a user