balena-cli
Version:
The official balena Command Line Interface
25 lines (24 loc) • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const lazy_1 = require("../../utils/lazy");
class OrganizationListCmd extends core_1.Command {
async run() {
await this.parse(OrganizationListCmd);
const { getOwnOrganizations } = await Promise.resolve().then(() => require('../../utils/sdk'));
const organizations = await getOwnOrganizations((0, lazy_1.getBalenaSdk)(), {
$select: ['name', 'handle'],
});
console.log((0, lazy_1.getVisuals)().table.horizontal(organizations, ['name', 'handle']));
}
}
OrganizationListCmd.aliases = ['orgs'];
OrganizationListCmd.deprecateAliases = true;
OrganizationListCmd.description = (0, lazy_1.stripIndent) `
List all organizations.
list all the organizations that you are a member of.
`;
OrganizationListCmd.examples = ['$ balena organization list'];
OrganizationListCmd.authenticated = true;
exports.default = OrganizationListCmd;
//# sourceMappingURL=list.js.map
;