dify/cli/src/framework/context.ts

16 lines
272 B
TypeScript

type CommandContext = {
verbose: boolean
}
const commandContext: CommandContext = {
verbose: false,
}
export function setVerbose(verbose: boolean): void {
commandContext.verbose = verbose
}
export function isVerbose(): boolean {
return commandContext.verbose
}