claude-code: added 'commandsDir' option to specify commands from filesystem

This commit is contained in:
Sewer56 2025-08-22 22:13:07 +01:00 committed by Austin Horstman
parent a641bbbb9b
commit be37a3492d
5 changed files with 47 additions and 0 deletions

View file

@ -26,11 +26,18 @@
test-agent = "test content";
};
agentsDir = ./agents;
# assert fail: cannot set commands and commandsDir at the same time.
commands = {
test-command = "test content";
};
commandsDir = ./commands;
};
test.asserts.assertions.expected = [
"`programs.claude-code.package` cannot be null when `mcpServers` is configured"
"Cannot specify both `programs.claude-code.memory.text` and `programs.claude-code.memory.source`"
"Cannot specify both `programs.claude-code.agents` and `programs.claude-code.agentsDir`"
"Cannot specify both `programs.claude-code.commands` and `programs.claude-code.commandsDir`"
];
}