(program: Command)
| 29 | export type LoginCommandOptions = z.infer<typeof LoginCommandOptions>; |
| 30 | |
| 31 | export function configureLoginCommand(program: Command) { |
| 32 | return commonOptions( |
| 33 | program |
| 34 | .command("login") |
| 35 | .description("Login with Trigger.dev so you can perform authenticated actions") |
| 36 | ) |
| 37 | .version(getVersion(), "-v, --version", "Display the version number") |
| 38 | .action(async (options) => { |
| 39 | await handleTelemetry(async () => { |
| 40 | await printInitialBanner(false); |
| 41 | await loginCommand(options); |
| 42 | }); |
| 43 | }); |
| 44 | } |
| 45 | |
| 46 | export async function loginCommand(options: unknown) { |
| 47 | return await wrapCommandAction("loginCommand", LoginCommandOptions, options, async (opts) => { |
no test coverage detected
searching dependent graphs…