@rockset/cli
Version:
Official Rockset CLI
29 lines (28 loc) • 949 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const core_2 = require("@rockset/core");
const base_command_1 = require("../../base-command");
let UseProfile = /** @class */ (() => {
class UseProfile extends base_command_1.RockCommand {
async run() {
const { args } = await this.parse(UseProfile);
await core_2.auth.activateAuthProfile(args.name);
this.info(`Successfully activated profile ${args.name}`);
}
}
UseProfile.flags = {
help: core_1.Flags.help({ char: 'h' }),
};
UseProfile.args = [
{
name: 'name',
required: true,
hidden: false,
description: 'The name of the profile you wish to use.',
},
];
UseProfile.description = `use a specific authentication profile`;
return UseProfile;
})();
exports.default = UseProfile;