MCPcopy
hub / github.com/wavetermdev/waveterm / PublishAppCommand

Method PublishAppCommand

pkg/wshrpc/wshserver/wshserver.go:1224–1232  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandPublishAppData)

Source from the content-addressed store, hash-verified

1222}
1223
1224func (ws *WshServer) PublishAppCommand(ctx context.Context, data wshrpc.CommandPublishAppData) (*wshrpc.CommandPublishAppRtnData, error) {
1225 publishedAppId, err := waveappstore.PublishDraft(data.AppId)
1226 if err != nil {
1227 return nil, fmt.Errorf("error publishing app: %w", err)
1228 }
1229 return &wshrpc.CommandPublishAppRtnData{
1230 PublishedAppId: publishedAppId,
1231 }, nil
1232}
1233
1234func (ws *WshServer) MakeDraftFromLocalCommand(ctx context.Context, data wshrpc.CommandMakeDraftFromLocalData) (*wshrpc.CommandMakeDraftFromLocalRtnData, error) {
1235 draftAppId, err := waveappstore.MakeDraftFromLocal(data.LocalAppId)

Callers

nothing calls this directly

Calls 1

PublishDraftFunction · 0.92

Tested by

no test coverage detected