programs.opencode.commands

Custom commands for opencode.

This option can either be:

If an attribute set is used, the attribute name becomes the command filename, and the value is either:

If a path is used, it is expected to contain command files. The directory is symlinked to $XDG_CONFIG_HOME/opencode/command/.

Type
(attribute set of (strings concatenated with "\n" or absolute path)) or absolute path
Default
{ }
Example
{
  changelog = ''
    # Update Changelog Command

    Update CHANGELOG.md with a new entry for the specified version.
    Usage: /changelog [version] [change-type] [message]
  '';
  fix-issue = ./commands/fix-issue.md;
  commit = ''
    # Commit Command

    Create a git commit with proper message formatting.
    Usage: /commit [message]
  '';
}
Declared
<home-manager/modules/programs/opencode.nix>