MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / CheckGoVersionCommand

Method CheckGoVersionCommand

pkg/wshrpc/wshserver/wshserver.go:1209–1222  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1207}
1208
1209func (ws *WshServer) CheckGoVersionCommand(ctx context.Context) (*wshrpc.CommandCheckGoVersionRtnData, error) {
1210 watcher := wconfig.GetWatcher()
1211 fullConfig := watcher.GetFullConfig()
1212 goPath := fullConfig.Settings.TsunamiGoPath
1213
1214 result := build.CheckGoVersion(goPath)
1215
1216 return &wshrpc.CommandCheckGoVersionRtnData{
1217 GoStatus: result.GoStatus,
1218 GoPath: result.GoPath,
1219 GoVersion: result.GoVersion,
1220 ErrorString: result.ErrorString,
1221 }, nil
1222}
1223
1224func (ws *WshServer) PublishAppCommand(ctx context.Context, data wshrpc.CommandPublishAppData) (*wshrpc.CommandPublishAppRtnData, error) {
1225 publishedAppId, err := waveappstore.PublishDraft(data.AppId)

Callers

nothing calls this directly

Calls 2

GetWatcherFunction · 0.92
GetFullConfigMethod · 0.80

Tested by

no test coverage detected