MCPcopy Create free account
hub / github.com/diillson/chatcli / handleGatewayCommand

Method handleGatewayCommand

cli/gateway_command.go:60–72  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

58}
59
60func (cli *ChatCLI) handleGatewayCommand(input string) {
61 sub := strings.TrimSpace(strings.TrimPrefix(input, "/gateway"))
62 switch sub {
63 case "", "start":
64 cli.gatewayStartDetached()
65 case "stop":
66 cli.gatewayStop()
67 case "status", "platforms":
68 cli.gatewayStatus()
69 default:
70 fmt.Println(colorize(" "+i18n.T("gateway.usage"), ColorGray))
71 }
72}
73
74// gatewayStatus reports the running daemon (if any) and which platforms are
75// registered/configured.

Callers 2

buildRoutesMethod · 0.80

Calls 5

gatewayStartDetachedMethod · 0.95
gatewayStopMethod · 0.95
gatewayStatusMethod · 0.95
TFunction · 0.92
colorizeFunction · 0.85

Tested by 1