Files
dify/cli/src/commands/_shared/dify-command.ts
T
2026-06-01 01:32:16 +00:00

10 lines
359 B
TypeScript

import type { AuthedContext, AuthedContextOptions } from './authed-command'
import { Command } from '@/framework/command'
import { buildAuthedContext } from './authed-command'
export abstract class DifyCommand extends Command {
protected async authedCtx(opts: AuthedContextOptions): Promise<AuthedContext> {
return buildAuthedContext(this, opts)
}
}