UNPKG

484 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.team = void 0;
4const core_1 = require("@oclif/core");
5exports.team = core_1.Flags.custom({
6 char: 't',
7 description: 'team to use',
8 default: async ({ flags }) => {
9 const { HEROKU_ORGANIZATION: org, HEROKU_TEAM: team } = process.env;
10 if (flags.org)
11 return flags.org;
12 if (team)
13 return team;
14 if (org)
15 return org;
16 },
17});