UNPKG

@heroku-cli/command

Version:
29 lines (28 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.completions = void 0; exports.getCompletions = getCompletions; exports.completions = { // Define your custom completions here // Example for a command that takes an app name: async app() { // You can implement dynamic completion logic here // For example, fetching apps from Heroku API return ['app1', 'app2', 'app3']; }, // Example for a command that takes a pipeline name: async pipeline() { // Implement pipeline name completion logic return ['pipeline1', 'pipeline2']; }, // Example for a command that takes a team name: async team() { // Implement team name completion logic return ['team1', 'team2']; }, }; // Export a function to get completions for a specific command function getCompletions(command) { var _a; return (_a = exports.completions[command]) === null || _a === void 0 ? void 0 : _a.call(exports.completions); }