steadybit
Version:
Command-line interface to interact with the Steadybit API
25 lines • 1.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: 2022 Steadybit GmbH
const commander_1 = require("commander");
const remove_1 = require("../config/profile/remove");
const select_1 = require("../config/profile/select");
const list_1 = require("../config/profile/list");
const add_1 = require("../config/profile/add");
const config_1 = require("../config");
const program = new commander_1.Command();
program
.command('add')
.description('Configure a new profile (interactively or via options).')
.addOption(new commander_1.Option('-n, --name <name>', 'Name of the profile'))
.addOption(new commander_1.Option('-b, --baseUrl <url>', 'Base URL to be used').default(config_1.defaultBaseUrl))
.addOption(new commander_1.Option('-t, --token <token>', 'Team API token'))
.action(add_1.add);
program.command('list').description('List all configured profiles.').action(list_1.list);
program.command('ls').description('Alias for list.').action(list_1.list);
program.command('remove').description('Interactively remove an existing profile.').action(remove_1.remove);
program.command('select').description('Interactively change the currently active profile.').action(select_1.select);
program.parseAsync(process.argv);
//# sourceMappingURL=steadybit-config-profile.js.map