@heroku-cli/plugin-autocomplete
Version:
<!-- usage --> ```sh-session $ heroku plugins:install @heroku-cli/plugin-autocomplete $ heroku autocomplete ... ``` <!-- usagestop --> # Commands <!-- commands --> * [`heroku autocomplete [SHELL]`](#heroku-autocomplete-shell)
28 lines (27 loc) • 787 B
TypeScript
import { flags } from '@heroku-cli/command';
import { AutocompleteBase } from '../../base';
export default class Options extends AutocompleteBase {
static hidden: boolean;
static description: string;
static flags: {
app: flags.IOptionFlag<string | undefined>;
};
static args: {
name: string;
strict: boolean;
}[];
parsedArgs: {
[ ]: string;
};
parsedFlags: {
[ ]: string;
};
run(): Promise<void>;
private processCommandLine();
private determineCompletion(commandStateVars);
private fetchOptions(cache);
private readonly parsedFlagsWithEnvVars;
private throwError(msg);
private findFlagFromWildArg(wild, Klass);
private determineCmdState(argv, Klass);
}