opencode-provider-switch/cmd/ocswitch/main.go
apale7 cf3dcec399 refactor(cli): rename tool to ocswitch
Avoid collision with the existing Opswitch product while keeping the repository name as opencode-provider-switch.

This aligns the CLI, provider key, config paths, examples, and Trellis history under one public-facing name.
2026-04-17 21:43:21 +08:00

21 lines
434 B
Go

// Command ocswitch: local alias + failover proxy for OpenCode.
package main
import (
"fmt"
"os"
"github.com/Apale7/opencode-provider-switch/internal/cli"
)
// version is overridden at build time via -ldflags "-X main.version=...".
var version = "dev"
func main() {
if err := cli.NewRootCmd(version).Execute(); err != nil {
// cobra already prints the error; ensure non-zero exit
fmt.Fprintln(os.Stderr)
os.Exit(1)
}
}