mirror of
https://github.com/instructkr/claude-code.git
synced 2026-05-14 01:46:44 +00:00
Compare commits
1 Commits
553d25ee50
...
fix/permis
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e9b21f415 |
@@ -926,6 +926,14 @@ fn parse_args(args: &[String]) -> Result<CliAction, String> {
|
|||||||
}
|
}
|
||||||
Ok(CliAction::Diff { output_format })
|
Ok(CliAction::Diff { output_format })
|
||||||
}
|
}
|
||||||
|
// `claw permissions <mode>` falls through to the LLM when called
|
||||||
|
// with a subcommand argument because parse_single_word_command_alias
|
||||||
|
// only intercepts the bare single-word form. Catch all multi-word
|
||||||
|
// forms here and return a structured guidance error so no network
|
||||||
|
// call or session is created.
|
||||||
|
"permissions" => Err(format!(
|
||||||
|
"`claw permissions` is a slash command. Start `claw` and run `/permissions` inside the REPL.\n Usage /permissions [read-only|workspace-write|danger-full-access]"
|
||||||
|
)),
|
||||||
"skills" => {
|
"skills" => {
|
||||||
let args = join_optional_args(&rest[1..]);
|
let args = join_optional_args(&rest[1..]);
|
||||||
match classify_skills_slash_command(args.as_deref()) {
|
match classify_skills_slash_command(args.as_deref()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user