(command: Command)
| 18 | export type CommonCommandOptions = z.infer<typeof CommonCommandOptions>; |
| 19 | |
| 20 | export function commonOptions(command: Command) { |
| 21 | return command |
| 22 | .option("--profile <profile>", "The login profile to use", "default") |
| 23 | .option("-a, --api-url <value>", "Override the API URL", "https://api.trigger.dev") |
| 24 | .option( |
| 25 | "-l, --log-level <level>", |
| 26 | "The CLI log level to use (debug, info, log, warn, error, none). This does not effect the log level of your trigger.dev tasks.", |
| 27 | "log" |
| 28 | ) |
| 29 | .option("--skip-telemetry", "Opt-out of sending telemetry"); |
| 30 | } |
| 31 | |
| 32 | export class SkipLoggingError extends Error {} |
| 33 | export class SkipCommandError extends Error {} |
no outgoing calls
no test coverage detected
searching dependent graphs…