@graphql-hive/cli
Version:
A CLI util to manage and control your GraphQL Hive
29 lines • 978 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const core_1 = require("@oclif/core");
const base_command_1 = tslib_1.__importDefault(require("../../base-command"));
const config_1 = require("../../helpers/config");
class SetConfig extends base_command_1.default {
async run() {
const { args } = await this.parse(SetConfig);
this.userConfig.set(args.key, args.value);
this.success(this.bolderize(`Config flag "${args.key}" was set to "${args.value}"`));
}
}
SetConfig.description = 'updates specific cli configuration';
SetConfig.args = {
key: core_1.Args.string({
name: 'key',
required: true,
description: 'config key',
options: config_1.allowedKeys,
}),
value: core_1.Args.string({
name: 'value',
required: true,
description: 'config value',
}),
};
exports.default = SetConfig;
//# sourceMappingURL=set.js.map
;