13 lines
327 B
Go
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
|
|
}
|