mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 21:31:52 +08:00
wip: plugins progress
This commit is contained in:
@@ -221,7 +221,10 @@ impl SlashCommand {
|
||||
},
|
||||
"plugins" => Self::Plugins {
|
||||
action: parts.next().map(ToOwned::to_owned),
|
||||
target: parts.next().map(ToOwned::to_owned),
|
||||
target: {
|
||||
let remainder = parts.collect::<Vec<_>>().join(" ");
|
||||
(!remainder.is_empty()).then_some(remainder)
|
||||
},
|
||||
},
|
||||
other => Self::Unknown(other.to_string()),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user