@grandlinex/easy-cli
    Preparing search index...

    Interface IHandler<X>

    interface IHandler<X = any> {
        getCmdName(): string;
        getCmds(full?: boolean): ShellCommand<any>[];
        getData(): X | null;
        getPageSize(): number | undefined;
        getStatic(key: string): string;
        isDev(): boolean;
        onEnd(): void;
        setStatic(key: string, value: any): void;
    }

    Type Parameters

    • X = any

    Implemented by

    Index
    • Get the default interactive page size

      Returns number | undefined

    • Parameters

      • key: string

      Returns string

    • function triggered when the command is ended

      Returns void

    • Set a static value

      Parameters

      • key: string
      • value: any

      Returns void