Align the binary, config, provider, proxy, tests, and docs with the OpenCode LocalProxy CLI rename so user-facing guidance and runtime identifiers stay consistent.
21 lines
433 B
Go
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)
|
|
}
|
|
}
|