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

Method DeleteAppFileCommand

pkg/wshrpc/wshserver/wshserver.go:1108–1113  ·  view source on GitHub ↗
(ctx context.Context, data wshrpc.CommandDeleteAppFileData)

Source from the content-addressed store, hash-verified

1106}
1107
1108func (ws *WshServer) DeleteAppFileCommand(ctx context.Context, data wshrpc.CommandDeleteAppFileData) error {
1109 if data.AppId == "" {
1110 return fmt.Errorf("must provide an appId to DeleteAppFileCommand")
1111 }
1112 return waveappstore.DeleteAppFile(data.AppId, data.FileName)
1113}
1114
1115func (ws *WshServer) RenameAppFileCommand(ctx context.Context, data wshrpc.CommandRenameAppFileData) error {
1116 if data.AppId == "" {

Callers

nothing calls this directly

Calls 1

DeleteAppFileFunction · 0.92

Tested by

no test coverage detected