mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
Include various tests for the agents and command file generation and different ways of configuring it. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
25 lines
773 B
Nix
25 lines
773 B
Nix
{
|
|
programs.opencode = {
|
|
enable = true;
|
|
commands = {
|
|
changelog = ''
|
|
# Update Changelog Command
|
|
|
|
Update CHANGELOG.md with a new entry for the specified version.
|
|
Usage: /changelog [version] [change-type] [message]'';
|
|
commit = ''
|
|
# Commit Command
|
|
|
|
Create a git commit with proper message formatting.
|
|
Usage: /commit [message]'';
|
|
};
|
|
};
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/opencode/command/changelog.md
|
|
assertFileExists home-files/.config/opencode/command/commit.md
|
|
assertFileContent home-files/.config/opencode/command/changelog.md \
|
|
${./changelog-command.md}
|
|
assertFileContent home-files/.config/opencode/command/commit.md \
|
|
${./commit-command.md}
|
|
'';
|
|
}
|