(runtime, options = {})
| 144 | ListAppsCommandOptions | undefined, |
| 145 | ListAppsCommandResult |
| 146 | > = async (runtime, options = {}): Promise<ListAppsCommandResult> => { |
| 147 | if (!runtime.backend.listApps) { |
| 148 | throw new AppError('UNSUPPORTED_OPERATION', 'apps.list is not supported by this backend'); |
| 149 | } |
| 150 | |
| 151 | const apps = await runtime.backend.listApps( |
| 152 | toAppBackendContext(runtime, options), |
| 153 | assertResolvedAppsFilter(options.filter), |
| 154 | ); |
| 155 | return { |
| 156 | kind: 'appsList', |
| 157 | apps, |
| 158 | }; |
| 159 | }; |
| 160 | |
| 161 | export const getAppStateCommand: RuntimeCommand< |
| 162 | GetAppStateCommandOptions, |
nothing calls this directly
no test coverage detected
searching dependent graphs…