MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / runTabCompletionCommand

Function runTabCompletionCommand

packages/cli/lib/tab-completion.js:112–122  ·  view source on GitHub ↗

* Run corresponding tab-completion command * @param optionsAndArgs - object of available options and arguments * - name - generator name * - options - list of option objects * - arguments - list of argument objects * @param originalCommand - command name * @param log - Log function

(optionsAndArgs, originalCommand, log)

Source from the content-addressed store, hash-verified

110 * @param log - Log function
111 */
112function runTabCompletionCommand(optionsAndArgs, originalCommand, log) {
113 if (originalCommand === 'install-completion') {
114 return installTabCompletionScript().catch(log);
115 }
116
117 if (originalCommand === 'uninstall-completion') {
118 return uninstallTabCompletionScript().catch(log);
119 }
120
121 return completion(optionsAndArgs, tabtab.parseEnv(process.env));
122}
123
124exports.tabCompletionCommands = tabCompletionCommands;
125exports.runTabCompletionCommand = runTabCompletionCommand;

Callers 2

cli-main.jsFile · 0.85

Calls 3

completionFunction · 0.85

Tested by

no test coverage detected