opencode-provider-switch/cmd/olpx/main.go
apale7 7c30e9d5eb refactor: rename ops CLI to olpx
Align the binary, config, provider, proxy, tests, and docs with the OpenCode LocalProxy CLI rename so user-facing guidance and runtime identifiers stay consistent.
2026-04-17 11:23:15 +08:00

21 lines
433 B
Go

// Command olpx: local alias + failover proxy for OpenCode.
package main
import (
"fmt"
"os"
"github.com/anomalyco/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)
}
}