MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / main

Function main

cmd/cam-desktop/main.go:13–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11var version = "dev"
12
13func 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}

Callers

nothing calls this directly

Calls 2

NewServicesFunction · 0.92
VersionMethod · 0.80

Tested by

no test coverage detected