UNPKG

@qodalis/angular-cli

Version:

A lightweight and flexible command-line interface (CLI) tool designed to streamline workflows and automate tasks for developers.

19 lines (18 loc) 711 B
import { CliKeyValueStore } from '../storage/cli-key-value-store'; import * as i0 from "@angular/core"; export declare class CliCommandHistoryService { private readonly store; private readonly storageKey; private commandHistory; constructor(store: CliKeyValueStore); addCommand(command: string): Promise<void>; getLastIndex(): number; getHistory(): string[]; clearHistory(): Promise<void>; getCommand(index: number): string | undefined; private saveHistory; private loadHistory; initialize(): Promise<void>; static ɵfac: i0.ɵɵFactoryDeclaration<CliCommandHistoryService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CliCommandHistoryService>; }