UNPKG

@heroku-cli/command

Version:
30 lines (29 loc) 1.05 kB
import { Command as Base } from '@oclif/core'; import { APIClient } from './api-client.js'; export declare abstract class Command extends Base { /** * Base flags that includes the prompt flag by default * Subclasses can override this to customize base flags */ static baseFlags: Record<string, any>; /** * Set this to false in a command class to disable the --prompt flag for that command */ static promptFlagActive: boolean; allowArbitraryFlags: boolean; _heroku: APIClient; /** * Helper function to get baseFlags without the prompt flag * Use this when you want to remove the prompt flag in a specific command: * * @example * export default class MyCommand extends Command { * static baseFlags = Command.baseFlagsWithoutPrompt() * static flags = { ... } * } */ static baseFlagsWithoutPrompt(): Record<string, any>; get heroku(): APIClient; init(): Promise<void>; protected parse(options?: any, argv?: string[]): Promise<any>; }