|
5 | 5 | ```ts |
6 | 6 |
|
7 | 7 | import { AmplifyIOHost } from '@aws-amplify/plugin-types'; |
| 8 | +import { Argv } from 'yargs'; |
8 | 9 | import { PackageManagerController } from '@aws-amplify/plugin-types'; |
| 10 | +import { UsageDataEmitter } from '@aws-amplify/platform-core'; |
9 | 11 | import { WriteStream } from 'node:tty'; |
10 | 12 | import z from 'zod'; |
11 | 13 |
|
@@ -33,12 +35,18 @@ export class AmplifyPrompter { |
33 | 35 | }) => Promise<boolean>; |
34 | 36 | } |
35 | 37 |
|
| 38 | +// @public |
| 39 | +export const attachUnhandledExceptionListeners: (usageDataEmitter?: UsageDataEmitter) => void; |
| 40 | + |
36 | 41 | // @public (undocumented) |
37 | 42 | export type ColorName = (typeof colorNames)[number]; |
38 | 43 |
|
39 | 44 | // @public (undocumented) |
40 | 45 | export const colorNames: readonly ["Green", "Yellow", "Blue", "Magenta", "Cyan", "Red"]; |
41 | 46 |
|
| 47 | +// @public |
| 48 | +export const extractSubCommands: (yargs: Argv) => string | undefined; |
| 49 | + |
42 | 50 | // @public |
43 | 51 | export class Format { |
44 | 52 | constructor(packageManagerRunnerName?: string); |
@@ -75,6 +83,9 @@ export class Format { |
75 | 83 | // @public (undocumented) |
76 | 84 | export const format: Format; |
77 | 85 |
|
| 86 | +// @public |
| 87 | +export const generateCommandFailureHandler: (parser?: Argv, usageDataEmitter?: UsageDataEmitter) => ((message: string, error: Error) => Promise<void>); |
| 88 | + |
78 | 89 | // @public (undocumented) |
79 | 90 | export enum LogLevel { |
80 | 91 | // (undocumented) |
@@ -185,7 +196,7 @@ export const noticeSchema: z.ZodObject<{ |
185 | 196 | errorMessage: string; |
186 | 197 | })[]; |
187 | 198 | link?: string | undefined; |
188 | | - frequency?: "once" | "command" | "deployment" | "daily" | undefined; |
| 199 | + frequency?: "command" | "once" | "deployment" | "daily" | undefined; |
189 | 200 | validFrom?: number | undefined; |
190 | 201 | validTo?: number | undefined; |
191 | 202 | }, { |
@@ -213,7 +224,7 @@ export const noticeSchema: z.ZodObject<{ |
213 | 224 | errorMessage: string; |
214 | 225 | })[]; |
215 | 226 | link?: string | undefined; |
216 | | - frequency?: "once" | "command" | "deployment" | "daily" | undefined; |
| 227 | + frequency?: "command" | "once" | "deployment" | "daily" | undefined; |
217 | 228 | validFrom?: number | undefined; |
218 | 229 | validTo?: number | undefined; |
219 | 230 | }>; |
@@ -314,7 +325,7 @@ export const noticesManifestSchema: z.ZodObject<{ |
314 | 325 | errorMessage: string; |
315 | 326 | })[]; |
316 | 327 | link?: string | undefined; |
317 | | - frequency?: "once" | "command" | "deployment" | "daily" | undefined; |
| 328 | + frequency?: "command" | "once" | "deployment" | "daily" | undefined; |
318 | 329 | validFrom?: number | undefined; |
319 | 330 | validTo?: number | undefined; |
320 | 331 | }, { |
@@ -342,7 +353,7 @@ export const noticesManifestSchema: z.ZodObject<{ |
342 | 353 | errorMessage: string; |
343 | 354 | })[]; |
344 | 355 | link?: string | undefined; |
345 | | - frequency?: "once" | "command" | "deployment" | "daily" | undefined; |
| 356 | + frequency?: "command" | "once" | "deployment" | "daily" | undefined; |
346 | 357 | validFrom?: number | undefined; |
347 | 358 | validTo?: number | undefined; |
348 | 359 | }>, "many">; |
@@ -372,7 +383,7 @@ export const noticesManifestSchema: z.ZodObject<{ |
372 | 383 | errorMessage: string; |
373 | 384 | })[]; |
374 | 385 | link?: string | undefined; |
375 | | - frequency?: "once" | "command" | "deployment" | "daily" | undefined; |
| 386 | + frequency?: "command" | "once" | "deployment" | "daily" | undefined; |
376 | 387 | validFrom?: number | undefined; |
377 | 388 | validTo?: number | undefined; |
378 | 389 | }[]; |
@@ -402,7 +413,7 @@ export const noticesManifestSchema: z.ZodObject<{ |
402 | 413 | errorMessage: string; |
403 | 414 | })[]; |
404 | 415 | link?: string | undefined; |
405 | | - frequency?: "once" | "command" | "deployment" | "daily" | undefined; |
| 416 | + frequency?: "command" | "once" | "deployment" | "daily" | undefined; |
406 | 417 | validFrom?: number | undefined; |
407 | 418 | validTo?: number | undefined; |
408 | 419 | }[]; |
|
0 commit comments