This repository has been archived on 2026-07-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-07-02 15:07:54 +08:00

13 lines
327 B
Go

package process
// DefaultOpenCodeCommand is the default command used to launch OpenCode.
const DefaultOpenCodeCommand = "opencode"
// normalizeCommand returns command if non-empty, otherwise the default.
func normalizeCommand(command string) string {
if command == "" {
return DefaultOpenCodeCommand
}
return command
}