(ctx context.Context, data wshrpc.CommandDeleteAppFileData)
| 1106 | } |
| 1107 | |
| 1108 | func (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 | |
| 1115 | func (ws *WshServer) RenameAppFileCommand(ctx context.Context, data wshrpc.CommandRenameAppFileData) error { |
| 1116 | if data.AppId == "" { |
nothing calls this directly
no test coverage detected