UNPKG

1.46 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { logging } from '@angular-devkit/core';
9/**
10 * Checks if it is appropriate to prompt the user to setup autocompletion. If not, does nothing. If
11 * so prompts and sets up autocompletion for the user. Returns an exit code if the program should
12 * terminate, otherwise returns `undefined`.
13 * @returns an exit code if the program should terminate, undefined otherwise.
14 */
15export declare function considerSettingUpAutocompletion(command: string, logger: logging.Logger): Promise<number | undefined>;
16/**
17 * Sets up autocompletion for the user's terminal. This attempts to find the configuration file for
18 * the current shell (`.bashrc`, `.zshrc`, etc.) and append a command which enables autocompletion
19 * for the Angular CLI. Supports only Bash and Zsh. Returns whether or not it was successful.
20 * @return The full path of the configuration file modified.
21 */
22export declare function initializeAutocomplete(): Promise<string>;
23/**
24 * Returns whether the user has a global CLI install.
25 * Execution from `npx` is *not* considered a global CLI install.
26 *
27 * This does *not* mean the current execution is from a global CLI install, only that a global
28 * install exists on the system.
29 */
30export declare function hasGlobalCliInstall(): Promise<boolean>;