()
| 11 | var version = "dev" |
| 12 | |
| 13 | func main() { |
| 14 | services := desktop.NewServices(version, "") |
| 15 | if len(os.Args) > 1 { |
| 16 | switch os.Args[1] { |
| 17 | case "--services": |
| 18 | _ = json.NewEncoder(os.Stdout).Encode(map[string][]string{ |
| 19 | "services": {"app", "providers", "mcp", "entities", "tools", "doctor", "config", "launch"}, |
| 20 | }) |
| 21 | return |
| 22 | case "--version", "version": |
| 23 | fmt.Printf("cam-desktop %s\n", services.App.Version()) |
| 24 | return |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | fmt.Fprintln(os.Stderr, "cam-desktop Wails runtime has been replaced by the Tauri desktop shell.") |
| 29 | fmt.Fprintln(os.Stderr, "Use `cargo tauri dev --manifest-path src-tauri/Cargo.toml` for the desktop app or `cam-sidecar` for the Go sidecar.") |
| 30 | os.Exit(1) |
| 31 | } |
nothing calls this directly
no test coverage detected