HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/node_modules/@oclif/core/lib/interfaces/command.d.ts
import { Config, LoadOptions } from './config';
import { ArgInput, BooleanFlagProps, Deprecation, FlagInput, OptionFlagProps } from './parser';
import { Plugin as IPlugin } from './plugin';
export type Example = string | {
    description: string;
    command: string;
};
export interface CommandProps {
    /** A command ID, used mostly in error or verbose reporting. */
    id: string;
    /** Hide the command from help */
    hidden: boolean;
    /** Mark the command as a given state (e.g. beta or deprecated) in help */
    state?: 'beta' | 'deprecated' | string;
    /**
     * Provide details to the deprecation warning if state === 'deprecated'
     */
    deprecationOptions?: Deprecation;
    /**
     * Emit a deprecation warning when a command alias is used.
     */
    deprecateAliases?: boolean;
    /** An array of aliases for this command. */
    aliases: string[];
    /**
     * The tweet-sized description for your class, used in a parent-commands
     * sub-command listing and as the header for the command help.
     */
    summary?: string;
    /**
     * A full description of how to use the command.
     *
     * If no summary, the first line of the description will be used as the summary.
     */
    description?: string;
    /**
     * An override string (or strings) for the default usage documentation.
     */
    usage?: string | string[];
    /**
     * An array of examples to show at the end of the command's help.
     *
     * IF only a string is provide, it will try to look for a line that starts
     * with the cmd.bin as the example command and the rest as the description.
     * If found, the command will be formatted appropriately.
     *
     * ```
     * EXAMPLES:
     *   A description of a particular use case.
     *
     *     $ <%= config.bin => command flags
     * ```
     */
    examples?: Example[];
}
export interface Command extends CommandProps {
    type?: string;
    pluginName?: string;
    pluginType?: string;
    pluginAlias?: string;
    flags: {
        [name: string]: Command.Flag;
    };
    args: Command.Arg[];
    strict: boolean;
    hasDynamicHelp?: boolean;
}
export declare namespace Command {
    interface Arg {
        name: string;
        description?: string;
        required?: boolean;
        hidden?: boolean;
        default?: string;
        options?: string[];
    }
    type Flag = Flag.Boolean | Flag.Option;
    namespace Flag {
        interface Boolean extends BooleanFlagProps {
        }
        interface Option extends OptionFlagProps {
            default?: string;
            defaultHelp?: () => Promise<string>;
        }
    }
    interface Base extends CommandProps {
        _base: string;
    }
    interface Class extends Base {
        plugin?: IPlugin;
        flags?: FlagInput<any>;
        args?: ArgInput;
        strict: boolean;
        hasDynamicHelp?: boolean;
        new (argv: string[], config: Config): Instance;
        run(argv?: string[], config?: LoadOptions): PromiseLike<any>;
    }
    interface Instance {
        _run(argv: string[]): Promise<any>;
    }
    interface Loadable extends Command {
        load(): Promise<Class>;
    }
    /**
     * @deprecated use Command.Loadable instead.
     */
    interface Plugin extends Command {
        load(): Promise<Class>;
    }
}