eas-cli 13.4.2 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -73
- package/build/ApiV2Error.js +5 -1
- package/build/analytics/AnalyticsManager.js +5 -4
- package/build/api.js +1 -0
- package/build/branch/actions/SelectBranch.js +1 -0
- package/build/branch/queries.d.ts +3 -3
- package/build/branch/queries.js +7 -5
- package/build/build/local.js +1 -1
- package/build/build/validate.js +6 -3
- package/build/channel/actions/SelectChannel.js +1 -0
- package/build/channel/queries.d.ts +0 -1
- package/build/channel/queries.js +11 -16
- package/build/commandUtils/EasCommand.js +100 -90
- package/build/commandUtils/builds.d.ts +1 -0
- package/build/commandUtils/builds.js +3 -0
- package/build/commandUtils/gating/FeatureGateEnvOverrides.js +1 -1
- package/build/commandUtils/gating/FeatureGating.js +2 -0
- package/build/commands/account/login.js +16 -18
- package/build/commands/account/logout.js +6 -8
- package/build/commands/account/view.js +8 -10
- package/build/commands/analytics.js +2 -2
- package/build/commands/branch/create.js +18 -20
- package/build/commands/branch/delete.js +17 -19
- package/build/commands/branch/list.js +11 -13
- package/build/commands/branch/publish.js +2 -2
- package/build/commands/branch/rename.js +18 -20
- package/build/commands/branch/view.js +19 -21
- package/build/commands/build/cancel.js +22 -24
- package/build/commands/build/configure.js +15 -17
- package/build/commands/build/delete.js +22 -24
- package/build/commands/build/index.js +81 -83
- package/build/commands/build/inspect.js +42 -44
- package/build/commands/build/internal.js +32 -34
- package/build/commands/build/list.js +58 -60
- package/build/commands/build/resign.js +36 -38
- package/build/commands/build/run.js +36 -38
- package/build/commands/build/version/get.js +21 -23
- package/build/commands/build/version/set.js +20 -22
- package/build/commands/build/version/sync.js +20 -22
- package/build/commands/build/view.js +12 -14
- package/build/commands/channel/create.js +17 -19
- package/build/commands/channel/delete.js +18 -20
- package/build/commands/channel/edit.js +20 -22
- package/build/commands/channel/list.js +12 -14
- package/build/commands/channel/pause.js +20 -22
- package/build/commands/channel/resume.js +20 -22
- package/build/commands/channel/rollout.js +74 -76
- package/build/commands/channel/view.js +18 -20
- package/build/commands/config.js +21 -23
- package/build/commands/credentials/configure-build.js +21 -23
- package/build/commands/credentials/index.js +13 -15
- package/build/commands/device/create.js +6 -8
- package/build/commands/device/delete.js +12 -14
- package/build/commands/device/list.js +12 -14
- package/build/commands/device/rename.js +13 -15
- package/build/commands/device/view.js +8 -10
- package/build/commands/diagnostics.js +6 -8
- package/build/commands/env/create.js +39 -41
- package/build/commands/env/delete.js +25 -27
- package/build/commands/env/exec.js +22 -24
- package/build/commands/env/get.js +26 -28
- package/build/commands/env/link.js +27 -29
- package/build/commands/env/list.js +27 -29
- package/build/commands/env/pull.js +23 -25
- package/build/commands/env/push.js +21 -23
- package/build/commands/env/unlink.js +23 -25
- package/build/commands/env/update.js +38 -40
- package/build/commands/fingerprint/compare.d.ts +28 -0
- package/build/commands/fingerprint/compare.js +324 -0
- package/build/commands/metadata/lint.js +18 -20
- package/build/commands/metadata/pull.js +15 -17
- package/build/commands/metadata/push.js +15 -17
- package/build/commands/open.js +6 -8
- package/build/commands/project/info.js +6 -8
- package/build/commands/project/init.js +26 -28
- package/build/commands/project/onboarding.js +10 -12
- package/build/commands/secret/create.js +30 -32
- package/build/commands/secret/delete.js +14 -16
- package/build/commands/secret/list.js +7 -9
- package/build/commands/secret/push.js +23 -25
- package/build/commands/submit/internal.js +23 -25
- package/build/commands/submit.js +54 -56
- package/build/commands/update/configure.js +18 -20
- package/build/commands/update/delete.js +16 -18
- package/build/commands/update/edit.js +25 -27
- package/build/commands/update/index.js +65 -67
- package/build/commands/update/list.js +21 -23
- package/build/commands/update/republish.js +45 -47
- package/build/commands/update/roll-back-to-embedded.d.ts +2 -1
- package/build/commands/update/roll-back-to-embedded.js +92 -84
- package/build/commands/update/rollback.js +7 -7
- package/build/commands/update/view.js +16 -18
- package/build/commands/webhook/create.js +20 -22
- package/build/commands/webhook/delete.js +17 -19
- package/build/commands/webhook/list.js +14 -16
- package/build/commands/webhook/update.js +23 -25
- package/build/commands/webhook/view.js +13 -15
- package/build/commands/worker/alias.js +30 -32
- package/build/commands/worker/deploy.js +38 -40
- package/build/commands/workflow/create.js +16 -18
- package/build/commands/workflow/run.js +13 -15
- package/build/commands/workflow/validate.js +18 -20
- package/build/credentials/android/AndroidCredentialsProvider.js +3 -1
- package/build/credentials/android/actions/AssignFcm.js +1 -0
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.js +1 -0
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.js +1 -0
- package/build/credentials/android/actions/CreateFcm.js +1 -0
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -0
- package/build/credentials/android/actions/CreateKeystore.js +1 -0
- package/build/credentials/android/actions/DownloadKeystore.js +2 -0
- package/build/credentials/android/actions/RemoveFcm.js +1 -0
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +2 -0
- package/build/credentials/android/actions/RemoveKeystore.js +1 -0
- package/build/credentials/android/actions/SetUpBuildCredentials.js +1 -0
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -0
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.js +1 -0
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.js +1 -0
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -0
- package/build/credentials/context.js +14 -5
- package/build/credentials/errors.js +1 -0
- package/build/credentials/ios/IosCredentialsProvider.js +3 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +1 -0
- package/build/credentials/ios/actions/AssignPushKey.js +1 -0
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +4 -0
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -0
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -0
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -0
- package/build/credentials/ios/actions/CreatePushKey.js +1 -0
- package/build/credentials/ios/actions/RemoveAscApiKey.js +2 -0
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +3 -0
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -0
- package/build/credentials/ios/actions/RemovePushKey.js +2 -0
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -0
- package/build/credentials/ios/actions/SetUpAscApiKey.js +9 -7
- package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -0
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +3 -0
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -0
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +1 -0
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +3 -0
- package/build/credentials/ios/actions/SetUpPushKey.js +1 -0
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -0
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -0
- package/build/credentials/ios/actions/UpdateCredentialsJson.js +3 -0
- package/build/credentials/ios/appstore/AppStoreApi.js +2 -0
- package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.js +3 -0
- package/build/credentials/manager/CreateAndroidBuildCredentials.js +1 -0
- package/build/credentials/manager/ManageAndroid.js +2 -0
- package/build/credentials/manager/ManageIos.js +2 -0
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -0
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +2 -0
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -0
- package/build/credentials/manager/SelectPlatform.js +7 -0
- package/build/credentials/manager/SetDefaultAndroidKeystore.js +1 -0
- package/build/credentials/manager/SetUpAndroidBuildCredentials.js +1 -0
- package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +9 -0
- package/build/credentials/manager/SetUpIosBuildCredentials.js +1 -0
- package/build/devices/actions/create/action.js +4 -0
- package/build/devices/manager.js +4 -0
- package/build/fetch.js +1 -0
- package/build/graphql/generated.d.ts +175 -0
- package/build/graphql/generated.js +8 -3
- package/build/graphql/queries/BuildQuery.d.ts +4 -1
- package/build/graphql/queries/BuildQuery.js +19 -0
- package/build/graphql/types/Build.d.ts +1 -0
- package/build/graphql/types/Build.js +15 -1
- package/build/graphql/types/Fingerprint.d.ts +1 -0
- package/build/graphql/types/Fingerprint.js +12 -0
- package/build/log.js +2 -2
- package/build/metadata/apple/config/reader.js +1 -0
- package/build/metadata/apple/config/writer.js +1 -0
- package/build/metadata/apple/tasks/age-rating.js +1 -4
- package/build/metadata/apple/tasks/app-info.js +1 -4
- package/build/metadata/apple/tasks/app-review-detail.js +1 -4
- package/build/metadata/apple/tasks/app-version.js +2 -1
- package/build/metadata/errors.js +5 -0
- package/build/rollout/actions/CreateRollout.d.ts +9 -10
- package/build/rollout/actions/CreateRollout.js +2 -0
- package/build/rollout/actions/EditRollout.d.ts +2 -3
- package/build/rollout/actions/EditRollout.js +2 -0
- package/build/rollout/actions/EndRollout.d.ts +4 -6
- package/build/rollout/actions/EndRollout.js +2 -0
- package/build/rollout/actions/ManageRollout.d.ts +2 -3
- package/build/rollout/actions/ManageRollout.js +2 -0
- package/build/rollout/actions/NonInteractiveRollout.d.ts +6 -27
- package/build/rollout/actions/NonInteractiveRollout.js +1 -0
- package/build/rollout/actions/RolloutMainMenu.d.ts +6 -7
- package/build/rollout/actions/RolloutMainMenu.js +1 -0
- package/build/rollout/actions/SelectRuntime.d.ts +6 -20
- package/build/rollout/actions/SelectRuntime.js +3 -0
- package/build/submit/BaseSubmitter.js +4 -0
- package/build/submit/android/AndroidSubmitCommand.js +1 -0
- package/build/submit/ios/IosSubmitCommand.js +1 -0
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +3 -3
- package/build/user/SessionManager.js +2 -0
- package/build/utils/fingerprint.d.ts +97 -0
- package/build/utils/fingerprint.js +5 -0
- package/build/utils/fingerprintCli.d.ts +5 -7
- package/build/utils/fingerprintCli.js +11 -1
- package/build/utils/fingerprintDiff.d.ts +33 -0
- package/build/utils/fingerprintDiff.js +122 -0
- package/build/vcs/clients/git.js +1 -0
- package/build/vcs/local.js +2 -1
- package/oclif.manifest.json +51 -7
- package/package.json +10 -8
package/build/commands/config.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const config_1 = require("@expo/config");
|
|
@@ -16,13 +15,32 @@ const platform_1 = require("../platform");
|
|
|
16
15
|
const prompts_1 = require("../prompts");
|
|
17
16
|
const json_1 = require("../utils/json");
|
|
18
17
|
class Config extends EasCommand_1.default {
|
|
18
|
+
static description = 'display project configuration (app.json + eas.json)';
|
|
19
|
+
static flags = {
|
|
20
|
+
platform: core_1.Flags.enum({ char: 'p', options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS] }),
|
|
21
|
+
profile: core_1.Flags.string({
|
|
22
|
+
char: 'e',
|
|
23
|
+
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
24
|
+
helpValue: 'PROFILE_NAME',
|
|
25
|
+
}),
|
|
26
|
+
// This option is used only on EAS Build worker to read build profile from eas.json.
|
|
27
|
+
'eas-json-only': core_1.Flags.boolean({
|
|
28
|
+
hidden: true,
|
|
29
|
+
}),
|
|
30
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
31
|
+
};
|
|
32
|
+
static contextDefinition = {
|
|
33
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
34
|
+
...this.ContextOptions.ProjectDir,
|
|
35
|
+
...this.ContextOptions.DynamicLoggedIn,
|
|
36
|
+
};
|
|
19
37
|
async runAsync() {
|
|
20
|
-
const { flags } = await this.parse(
|
|
38
|
+
const { flags } = await this.parse(Config);
|
|
21
39
|
if (flags.json) {
|
|
22
40
|
(0, json_1.enableJsonOutput)();
|
|
23
41
|
}
|
|
24
42
|
const { platform: maybePlatform, profile: maybeProfile, 'non-interactive': nonInteractive, } = flags;
|
|
25
|
-
const { getDynamicPublicProjectConfigAsync, projectDir, getDynamicLoggedInAsync } = await this.getContextAsync(
|
|
43
|
+
const { getDynamicPublicProjectConfigAsync, projectDir, getDynamicLoggedInAsync } = await this.getContextAsync(Config, {
|
|
26
44
|
nonInteractive,
|
|
27
45
|
withServerSideEnvironment: null,
|
|
28
46
|
});
|
|
@@ -84,24 +102,4 @@ class Config extends EasCommand_1.default {
|
|
|
84
102
|
}
|
|
85
103
|
}
|
|
86
104
|
}
|
|
87
|
-
_a = Config;
|
|
88
|
-
Config.description = 'display project configuration (app.json + eas.json)';
|
|
89
|
-
Config.flags = {
|
|
90
|
-
platform: core_1.Flags.enum({ char: 'p', options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS] }),
|
|
91
|
-
profile: core_1.Flags.string({
|
|
92
|
-
char: 'e',
|
|
93
|
-
description: 'Name of the build profile from eas.json. Defaults to "production" if defined in eas.json.',
|
|
94
|
-
helpValue: 'PROFILE_NAME',
|
|
95
|
-
}),
|
|
96
|
-
// This option is used only on EAS Build worker to read build profile from eas.json.
|
|
97
|
-
'eas-json-only': core_1.Flags.boolean({
|
|
98
|
-
hidden: true,
|
|
99
|
-
}),
|
|
100
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
101
|
-
};
|
|
102
|
-
Config.contextDefinition = {
|
|
103
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
104
|
-
..._a.ContextOptions.ProjectDir,
|
|
105
|
-
..._a.ContextOptions.DynamicLoggedIn,
|
|
106
|
-
};
|
|
107
105
|
exports.default = Config;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
@@ -9,9 +8,28 @@ const SelectBuildProfileFromEasJson_1 = require("../../credentials/manager/Selec
|
|
|
9
8
|
const SetUpBuildCredentialsCommandAction_1 = require("../../credentials/manager/SetUpBuildCredentialsCommandAction");
|
|
10
9
|
const platform_1 = require("../../platform");
|
|
11
10
|
class InitializeBuildCredentials extends EasCommand_1.default {
|
|
11
|
+
static description = 'Set up credentials for building your project.';
|
|
12
|
+
static flags = {
|
|
13
|
+
platform: core_1.Flags.enum({
|
|
14
|
+
char: 'p',
|
|
15
|
+
options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS],
|
|
16
|
+
}),
|
|
17
|
+
profile: core_1.Flags.string({
|
|
18
|
+
char: 'e',
|
|
19
|
+
description: 'The name of the build profile in eas.json.',
|
|
20
|
+
helpValue: 'PROFILE_NAME',
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
23
|
+
static contextDefinition = {
|
|
24
|
+
...this.ContextOptions.LoggedIn,
|
|
25
|
+
...this.ContextOptions.ProjectConfig,
|
|
26
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
27
|
+
...this.ContextOptions.Analytics,
|
|
28
|
+
...this.ContextOptions.Vcs,
|
|
29
|
+
};
|
|
12
30
|
async runAsync() {
|
|
13
|
-
const { flags } = await this.parse(
|
|
14
|
-
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(
|
|
31
|
+
const { flags } = await this.parse(InitializeBuildCredentials);
|
|
32
|
+
const { loggedIn: { actor, graphqlClient }, privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(InitializeBuildCredentials, {
|
|
15
33
|
nonInteractive: false,
|
|
16
34
|
withServerSideEnvironment: null,
|
|
17
35
|
});
|
|
@@ -21,24 +39,4 @@ class InitializeBuildCredentials extends EasCommand_1.default {
|
|
|
21
39
|
await new SetUpBuildCredentialsCommandAction_1.SetUpBuildCredentialsCommandAction(actor, graphqlClient, vcsClient, analytics, privateProjectConfig ?? null, getDynamicPrivateProjectConfigAsync, platform, buildProfile, process.cwd()).runAsync();
|
|
22
40
|
}
|
|
23
41
|
}
|
|
24
|
-
_a = InitializeBuildCredentials;
|
|
25
|
-
InitializeBuildCredentials.description = 'Set up credentials for building your project.';
|
|
26
|
-
InitializeBuildCredentials.flags = {
|
|
27
|
-
platform: core_1.Flags.enum({
|
|
28
|
-
char: 'p',
|
|
29
|
-
options: [eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS],
|
|
30
|
-
}),
|
|
31
|
-
profile: core_1.Flags.string({
|
|
32
|
-
char: 'e',
|
|
33
|
-
description: 'The name of the build profile in eas.json.',
|
|
34
|
-
helpValue: 'PROFILE_NAME',
|
|
35
|
-
}),
|
|
36
|
-
};
|
|
37
|
-
InitializeBuildCredentials.contextDefinition = {
|
|
38
|
-
..._a.ContextOptions.LoggedIn,
|
|
39
|
-
..._a.ContextOptions.ProjectConfig,
|
|
40
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
41
|
-
..._a.ContextOptions.Analytics,
|
|
42
|
-
..._a.ContextOptions.Vcs,
|
|
43
|
-
};
|
|
44
42
|
exports.default = InitializeBuildCredentials;
|
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
6
5
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
7
6
|
const SelectPlatform_1 = require("../../credentials/manager/SelectPlatform");
|
|
8
7
|
class Credentials extends EasCommand_1.default {
|
|
8
|
+
static description = 'manage credentials';
|
|
9
|
+
static flags = {
|
|
10
|
+
platform: core_1.Flags.enum({ char: 'p', options: ['android', 'ios'] }),
|
|
11
|
+
};
|
|
12
|
+
static contextDefinition = {
|
|
13
|
+
...this.ContextOptions.LoggedIn,
|
|
14
|
+
...this.ContextOptions.OptionalProjectConfig,
|
|
15
|
+
...this.ContextOptions.DynamicProjectConfig,
|
|
16
|
+
...this.ContextOptions.Analytics,
|
|
17
|
+
...this.ContextOptions.Vcs,
|
|
18
|
+
};
|
|
9
19
|
async runAsync() {
|
|
10
|
-
const { flags } = await this.parse(
|
|
11
|
-
const { loggedIn: { actor, graphqlClient }, optionalPrivateProjectConfig: privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(
|
|
20
|
+
const { flags } = await this.parse(Credentials);
|
|
21
|
+
const { loggedIn: { actor, graphqlClient }, optionalPrivateProjectConfig: privateProjectConfig, getDynamicPrivateProjectConfigAsync, analytics, vcsClient, } = await this.getContextAsync(Credentials, {
|
|
12
22
|
nonInteractive: false,
|
|
13
23
|
withServerSideEnvironment: null,
|
|
14
24
|
});
|
|
15
25
|
await new SelectPlatform_1.SelectPlatform(actor, graphqlClient, vcsClient, analytics, privateProjectConfig ?? null, getDynamicPrivateProjectConfigAsync, flags.platform).runAsync();
|
|
16
26
|
}
|
|
17
27
|
}
|
|
18
|
-
_a = Credentials;
|
|
19
|
-
Credentials.description = 'manage credentials';
|
|
20
|
-
Credentials.flags = {
|
|
21
|
-
platform: core_1.Flags.enum({ char: 'p', options: ['android', 'ios'] }),
|
|
22
|
-
};
|
|
23
|
-
Credentials.contextDefinition = {
|
|
24
|
-
..._a.ContextOptions.LoggedIn,
|
|
25
|
-
..._a.ContextOptions.OptionalProjectConfig,
|
|
26
|
-
..._a.ContextOptions.DynamicProjectConfig,
|
|
27
|
-
..._a.ContextOptions.Analytics,
|
|
28
|
-
..._a.ContextOptions.Vcs,
|
|
29
|
-
};
|
|
30
28
|
exports.default = Credentials;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
@@ -7,9 +6,14 @@ const AppStoreApi_1 = tslib_1.__importDefault(require("../../credentials/ios/app
|
|
|
7
6
|
const context_1 = require("../../devices/context");
|
|
8
7
|
const manager_1 = tslib_1.__importDefault(require("../../devices/manager"));
|
|
9
8
|
class DeviceCreate extends EasCommand_1.default {
|
|
9
|
+
static description = 'register new Apple Devices to use for internal distribution';
|
|
10
|
+
static contextDefinition = {
|
|
11
|
+
...this.ContextOptions.LoggedIn,
|
|
12
|
+
...this.ContextOptions.OptionalProjectConfig,
|
|
13
|
+
};
|
|
10
14
|
async runAsync() {
|
|
11
15
|
// this command is interactive by design
|
|
12
|
-
const { loggedIn: { actor, graphqlClient }, optionalPrivateProjectConfig: privateProjectConfig, } = await this.getContextAsync(
|
|
16
|
+
const { loggedIn: { actor, graphqlClient }, optionalPrivateProjectConfig: privateProjectConfig, } = await this.getContextAsync(DeviceCreate, {
|
|
13
17
|
nonInteractive: false,
|
|
14
18
|
withServerSideEnvironment: null,
|
|
15
19
|
});
|
|
@@ -23,10 +27,4 @@ class DeviceCreate extends EasCommand_1.default {
|
|
|
23
27
|
await manager.createAsync();
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
|
-
_a = DeviceCreate;
|
|
27
|
-
DeviceCreate.description = 'register new Apple Devices to use for internal distribution';
|
|
28
|
-
DeviceCreate.contextDefinition = {
|
|
29
|
-
..._a.ContextOptions.LoggedIn,
|
|
30
|
-
..._a.ContextOptions.OptionalProjectConfig,
|
|
31
|
-
};
|
|
32
30
|
exports.default = DeviceCreate;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
@@ -19,11 +18,21 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
19
18
|
const prompts_1 = require("../../prompts");
|
|
20
19
|
const json_1 = require("../../utils/json");
|
|
21
20
|
class DeviceDelete extends EasCommand_1.default {
|
|
21
|
+
static description = 'remove a registered device from your account';
|
|
22
|
+
static flags = {
|
|
23
|
+
'apple-team-id': core_1.Flags.string({ description: 'The Apple team ID on which to find the device' }),
|
|
24
|
+
udid: core_1.Flags.string({ description: 'The Apple device ID to disable' }),
|
|
25
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
26
|
+
};
|
|
27
|
+
static contextDefinition = {
|
|
28
|
+
...this.ContextOptions.ProjectId,
|
|
29
|
+
...this.ContextOptions.LoggedIn,
|
|
30
|
+
};
|
|
22
31
|
async runAsync() {
|
|
23
|
-
const { flags } = await this.parse(
|
|
32
|
+
const { flags } = await this.parse(DeviceDelete);
|
|
24
33
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
25
34
|
let { 'apple-team-id': appleTeamIdentifier, udid } = flags;
|
|
26
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
35
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(DeviceDelete, {
|
|
27
36
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
28
37
|
});
|
|
29
38
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -123,15 +132,4 @@ class DeviceDelete extends EasCommand_1.default {
|
|
|
123
132
|
}
|
|
124
133
|
}
|
|
125
134
|
}
|
|
126
|
-
_a = DeviceDelete;
|
|
127
|
-
DeviceDelete.description = 'remove a registered device from your account';
|
|
128
|
-
DeviceDelete.flags = {
|
|
129
|
-
'apple-team-id': core_1.Flags.string({ description: 'The Apple team ID on which to find the device' }),
|
|
130
|
-
udid: core_1.Flags.string({ description: 'The Apple device ID to disable' }),
|
|
131
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
132
|
-
};
|
|
133
|
-
DeviceDelete.contextDefinition = {
|
|
134
|
-
..._a.ContextOptions.ProjectId,
|
|
135
|
-
..._a.ContextOptions.LoggedIn,
|
|
136
|
-
};
|
|
137
135
|
exports.default = DeviceDelete;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -11,10 +10,20 @@ const queries_1 = require("../../devices/queries");
|
|
|
11
10
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
12
11
|
const json_1 = require("../../utils/json");
|
|
13
12
|
class BuildList extends EasCommand_1.default {
|
|
13
|
+
static description = 'list all registered devices for your account';
|
|
14
|
+
static flags = {
|
|
15
|
+
'apple-team-id': core_1.Flags.string(),
|
|
16
|
+
...pagination_1.EasPaginatedQueryFlags,
|
|
17
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
18
|
+
};
|
|
19
|
+
static contextDefinition = {
|
|
20
|
+
...this.ContextOptions.ProjectId,
|
|
21
|
+
...this.ContextOptions.LoggedIn,
|
|
22
|
+
};
|
|
14
23
|
async runAsync() {
|
|
15
|
-
const { flags } = await this.parse(
|
|
24
|
+
const { flags } = await this.parse(BuildList);
|
|
16
25
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
17
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
26
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(BuildList, {
|
|
18
27
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
19
28
|
});
|
|
20
29
|
let appleTeamIdentifier = flags['apple-team-id'];
|
|
@@ -48,15 +57,4 @@ class BuildList extends EasCommand_1.default {
|
|
|
48
57
|
});
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
|
-
_a = BuildList;
|
|
52
|
-
BuildList.description = 'list all registered devices for your account';
|
|
53
|
-
BuildList.flags = {
|
|
54
|
-
'apple-team-id': core_1.Flags.string(),
|
|
55
|
-
...pagination_1.EasPaginatedQueryFlags,
|
|
56
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
57
|
-
};
|
|
58
|
-
BuildList.contextDefinition = {
|
|
59
|
-
..._a.ContextOptions.ProjectId,
|
|
60
|
-
..._a.ContextOptions.LoggedIn,
|
|
61
|
-
};
|
|
62
60
|
exports.default = BuildList;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const apple_utils_1 = require("@expo/apple-utils");
|
|
@@ -19,11 +18,22 @@ const projectUtils_1 = require("../../project/projectUtils");
|
|
|
19
18
|
const prompts_1 = require("../../prompts");
|
|
20
19
|
const json_1 = require("../../utils/json");
|
|
21
20
|
class DeviceRename extends EasCommand_1.default {
|
|
21
|
+
static description = 'rename a registered device';
|
|
22
|
+
static flags = {
|
|
23
|
+
'apple-team-id': core_1.Flags.string({ description: 'The Apple team ID on which to find the device' }),
|
|
24
|
+
udid: core_1.Flags.string({ description: 'The Apple device ID to rename' }),
|
|
25
|
+
name: core_1.Flags.string({ description: 'The new name for the device' }),
|
|
26
|
+
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
27
|
+
};
|
|
28
|
+
static contextDefinition = {
|
|
29
|
+
...this.ContextOptions.ProjectId,
|
|
30
|
+
...this.ContextOptions.LoggedIn,
|
|
31
|
+
};
|
|
22
32
|
async runAsync() {
|
|
23
|
-
const { flags } = await this.parse(
|
|
33
|
+
const { flags } = await this.parse(DeviceRename);
|
|
24
34
|
const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
|
|
25
35
|
let { 'apple-team-id': appleTeamIdentifier, udid, name } = flags;
|
|
26
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
36
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(DeviceRename, {
|
|
27
37
|
nonInteractive: paginatedQueryOptions.nonInteractive,
|
|
28
38
|
});
|
|
29
39
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -112,16 +122,4 @@ class DeviceRename extends EasCommand_1.default {
|
|
|
112
122
|
}
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
|
-
_a = DeviceRename;
|
|
116
|
-
DeviceRename.description = 'rename a registered device';
|
|
117
|
-
DeviceRename.flags = {
|
|
118
|
-
'apple-team-id': core_1.Flags.string({ description: 'The Apple team ID on which to find the device' }),
|
|
119
|
-
udid: core_1.Flags.string({ description: 'The Apple device ID to rename' }),
|
|
120
|
-
name: core_1.Flags.string({ description: 'The new name for the device' }),
|
|
121
|
-
...flags_1.EasNonInteractiveAndJsonFlags,
|
|
122
|
-
};
|
|
123
|
-
DeviceRename.contextDefinition = {
|
|
124
|
-
..._a.ContextOptions.ProjectId,
|
|
125
|
-
..._a.ContextOptions.LoggedIn,
|
|
126
|
-
};
|
|
127
125
|
exports.default = DeviceRename;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
@@ -9,8 +8,14 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
9
8
|
const ora_1 = require("../../ora");
|
|
10
9
|
const projectUtils_1 = require("../../project/projectUtils");
|
|
11
10
|
class DeviceView extends EasCommand_1.default {
|
|
11
|
+
static description = 'view a device for your project';
|
|
12
|
+
static args = [{ name: 'UDID' }];
|
|
13
|
+
static contextDefinition = {
|
|
14
|
+
...this.ContextOptions.ProjectId,
|
|
15
|
+
...this.ContextOptions.LoggedIn,
|
|
16
|
+
};
|
|
12
17
|
async runAsync() {
|
|
13
|
-
const { UDID } = (await this.parse(
|
|
18
|
+
const { UDID } = (await this.parse(DeviceView)).args;
|
|
14
19
|
if (!UDID) {
|
|
15
20
|
log_1.default.log(`The device UDID is required to view a specific device. For example:
|
|
16
21
|
|
|
@@ -22,7 +27,7 @@ If you are not sure what is the UDID of the device you are looking for, run:
|
|
|
22
27
|
`);
|
|
23
28
|
throw new Error('Device UDID is missing');
|
|
24
29
|
}
|
|
25
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
30
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(DeviceView, {
|
|
26
31
|
nonInteractive: true,
|
|
27
32
|
});
|
|
28
33
|
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -43,11 +48,4 @@ If you are not sure what is the UDID of the device you are looking for, run:
|
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
|
-
_a = DeviceView;
|
|
47
|
-
DeviceView.description = 'view a device for your project';
|
|
48
|
-
DeviceView.args = [{ name: 'UDID' }];
|
|
49
|
-
DeviceView.contextDefinition = {
|
|
50
|
-
..._a.ContextOptions.ProjectId,
|
|
51
|
-
..._a.ContextOptions.LoggedIn,
|
|
52
|
-
};
|
|
53
51
|
exports.default = DeviceView;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
@@ -11,8 +10,13 @@ const ora_1 = require("../ora");
|
|
|
11
10
|
const workflow_1 = require("../project/workflow");
|
|
12
11
|
const easCli_1 = require("../utils/easCli");
|
|
13
12
|
class Diagnostics extends EasCommand_1.default {
|
|
13
|
+
static description = 'display environment info';
|
|
14
|
+
static contextDefinition = {
|
|
15
|
+
...this.ContextOptions.ProjectDir,
|
|
16
|
+
...this.ContextOptions.Vcs,
|
|
17
|
+
};
|
|
14
18
|
async runAsync() {
|
|
15
|
-
const { projectDir, vcsClient } = await this.getContextAsync(
|
|
19
|
+
const { projectDir, vcsClient } = await this.getContextAsync(Diagnostics, {
|
|
16
20
|
nonInteractive: true,
|
|
17
21
|
});
|
|
18
22
|
const spinner = (0, ora_1.ora)().start(`Gathering diagnostic information...`);
|
|
@@ -54,10 +58,4 @@ class Diagnostics extends EasCommand_1.default {
|
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
|
-
_a = Diagnostics;
|
|
58
|
-
Diagnostics.description = 'display environment info';
|
|
59
|
-
Diagnostics.contextDefinition = {
|
|
60
|
-
..._a.ContextOptions.ProjectDir,
|
|
61
|
-
..._a.ContextOptions.Vcs,
|
|
62
|
-
};
|
|
63
61
|
exports.default = Diagnostics;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -17,11 +16,48 @@ const prompts_1 = require("../../prompts");
|
|
|
17
16
|
const prompts_2 = require("../../utils/prompts");
|
|
18
17
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
19
18
|
class EnvCreate extends EasCommand_1.default {
|
|
19
|
+
static description = 'create an environment variable for the current project or account';
|
|
20
|
+
static args = [
|
|
21
|
+
{
|
|
22
|
+
name: 'environment',
|
|
23
|
+
description: "Environment to create the variable in. One of 'production', 'preview', or 'development'.",
|
|
24
|
+
required: false,
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
static flags = {
|
|
28
|
+
name: core_1.Flags.string({
|
|
29
|
+
description: 'Name of the variable',
|
|
30
|
+
}),
|
|
31
|
+
value: core_1.Flags.string({
|
|
32
|
+
description: 'Text value or the variable',
|
|
33
|
+
}),
|
|
34
|
+
link: core_1.Flags.boolean({
|
|
35
|
+
description: 'Link account-wide variable to the current project',
|
|
36
|
+
hidden: true, // every account-wide variable is global for now so it's not user facing
|
|
37
|
+
}),
|
|
38
|
+
force: core_1.Flags.boolean({
|
|
39
|
+
description: 'Overwrite existing variable',
|
|
40
|
+
default: false,
|
|
41
|
+
}),
|
|
42
|
+
type: core_1.Flags.enum({
|
|
43
|
+
description: 'The type of variable',
|
|
44
|
+
options: ['string', 'file'],
|
|
45
|
+
}),
|
|
46
|
+
...flags_1.EASVariableVisibilityFlag,
|
|
47
|
+
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
48
|
+
...flags_1.EASMultiEnvironmentFlag,
|
|
49
|
+
...flags_1.EASNonInteractiveFlag,
|
|
50
|
+
};
|
|
51
|
+
static contextDefinition = {
|
|
52
|
+
...this.ContextOptions.ProjectId,
|
|
53
|
+
...this.ContextOptions.Analytics,
|
|
54
|
+
...this.ContextOptions.LoggedIn,
|
|
55
|
+
};
|
|
20
56
|
async runAsync() {
|
|
21
|
-
const { args, flags } = await this.parse(
|
|
57
|
+
const { args, flags } = await this.parse(EnvCreate);
|
|
22
58
|
const validatedFlags = this.sanitizeFlags(flags);
|
|
23
59
|
const { name, value, scope, 'non-interactive': nonInteractive, environment: environments, visibility, link, force, type, fileName, } = await this.promptForMissingFlagsAsync(validatedFlags, args);
|
|
24
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
60
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvCreate, {
|
|
25
61
|
nonInteractive,
|
|
26
62
|
});
|
|
27
63
|
const [projectDisplayName, ownerAccount] = await Promise.all([
|
|
@@ -215,42 +251,4 @@ class EnvCreate extends EasCommand_1.default {
|
|
|
215
251
|
};
|
|
216
252
|
}
|
|
217
253
|
}
|
|
218
|
-
_a = EnvCreate;
|
|
219
|
-
EnvCreate.description = 'create an environment variable for the current project or account';
|
|
220
|
-
EnvCreate.args = [
|
|
221
|
-
{
|
|
222
|
-
name: 'environment',
|
|
223
|
-
description: "Environment to create the variable in. One of 'production', 'preview', or 'development'.",
|
|
224
|
-
required: false,
|
|
225
|
-
},
|
|
226
|
-
];
|
|
227
|
-
EnvCreate.flags = {
|
|
228
|
-
name: core_1.Flags.string({
|
|
229
|
-
description: 'Name of the variable',
|
|
230
|
-
}),
|
|
231
|
-
value: core_1.Flags.string({
|
|
232
|
-
description: 'Text value or the variable',
|
|
233
|
-
}),
|
|
234
|
-
link: core_1.Flags.boolean({
|
|
235
|
-
description: 'Link account-wide variable to the current project',
|
|
236
|
-
hidden: true, // every account-wide variable is global for now so it's not user facing
|
|
237
|
-
}),
|
|
238
|
-
force: core_1.Flags.boolean({
|
|
239
|
-
description: 'Overwrite existing variable',
|
|
240
|
-
default: false,
|
|
241
|
-
}),
|
|
242
|
-
type: core_1.Flags.enum({
|
|
243
|
-
description: 'The type of variable',
|
|
244
|
-
options: ['string', 'file'],
|
|
245
|
-
}),
|
|
246
|
-
...flags_1.EASVariableVisibilityFlag,
|
|
247
|
-
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
248
|
-
...flags_1.EASMultiEnvironmentFlag,
|
|
249
|
-
...flags_1.EASNonInteractiveFlag,
|
|
250
|
-
};
|
|
251
|
-
EnvCreate.contextDefinition = {
|
|
252
|
-
..._a.ContextOptions.ProjectId,
|
|
253
|
-
..._a.ContextOptions.Analytics,
|
|
254
|
-
..._a.ContextOptions.LoggedIn,
|
|
255
|
-
};
|
|
256
254
|
exports.default = EnvCreate;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const core_1 = require("@oclif/core");
|
|
@@ -14,10 +13,33 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
14
13
|
const prompts_1 = require("../../prompts");
|
|
15
14
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
16
15
|
class EnvDelete extends EasCommand_1.default {
|
|
16
|
+
static description = 'delete an environment variable for the current project or account';
|
|
17
|
+
static flags = {
|
|
18
|
+
'variable-name': core_1.Flags.string({
|
|
19
|
+
description: 'Name of the variable to delete',
|
|
20
|
+
}),
|
|
21
|
+
'variable-environment': core_1.Flags.enum({
|
|
22
|
+
...flags_1.EasEnvironmentFlagParameters,
|
|
23
|
+
description: 'Current environment of the variable to delete',
|
|
24
|
+
}),
|
|
25
|
+
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
26
|
+
...flags_1.EASNonInteractiveFlag,
|
|
27
|
+
};
|
|
28
|
+
static args = [
|
|
29
|
+
{
|
|
30
|
+
name: 'environment',
|
|
31
|
+
description: "Current environment of the variable to delete. One of 'production', 'preview', or 'development'.",
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
static contextDefinition = {
|
|
36
|
+
...this.ContextOptions.ProjectId,
|
|
37
|
+
...this.ContextOptions.LoggedIn,
|
|
38
|
+
};
|
|
17
39
|
async runAsync() {
|
|
18
|
-
const { args, flags } = await this.parse(
|
|
40
|
+
const { args, flags } = await this.parse(EnvDelete);
|
|
19
41
|
const { 'variable-name': name, 'variable-environment': environment, 'non-interactive': nonInteractive, scope, } = this.sanitizeInputs(flags, args);
|
|
20
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
42
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvDelete, {
|
|
21
43
|
nonInteractive,
|
|
22
44
|
});
|
|
23
45
|
const variables = scope === generated_1.EnvironmentVariableScope.Project
|
|
@@ -95,28 +117,4 @@ class EnvDelete extends EasCommand_1.default {
|
|
|
95
117
|
return { ...flags, scope };
|
|
96
118
|
}
|
|
97
119
|
}
|
|
98
|
-
_a = EnvDelete;
|
|
99
|
-
EnvDelete.description = 'delete an environment variable for the current project or account';
|
|
100
|
-
EnvDelete.flags = {
|
|
101
|
-
'variable-name': core_1.Flags.string({
|
|
102
|
-
description: 'Name of the variable to delete',
|
|
103
|
-
}),
|
|
104
|
-
'variable-environment': core_1.Flags.enum({
|
|
105
|
-
...flags_1.EasEnvironmentFlagParameters,
|
|
106
|
-
description: 'Current environment of the variable to delete',
|
|
107
|
-
}),
|
|
108
|
-
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
109
|
-
...flags_1.EASNonInteractiveFlag,
|
|
110
|
-
};
|
|
111
|
-
EnvDelete.args = [
|
|
112
|
-
{
|
|
113
|
-
name: 'environment',
|
|
114
|
-
description: "Current environment of the variable to delete. One of 'production', 'preview', or 'development'.",
|
|
115
|
-
required: false,
|
|
116
|
-
},
|
|
117
|
-
];
|
|
118
|
-
EnvDelete.contextDefinition = {
|
|
119
|
-
..._a.ContextOptions.ProjectId,
|
|
120
|
-
..._a.ContextOptions.LoggedIn,
|
|
121
|
-
};
|
|
122
120
|
exports.default = EnvDelete;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
const tslib_1 = require("tslib");
|
|
5
4
|
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
@@ -11,10 +10,30 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
11
10
|
const prompts_1 = require("../../utils/prompts");
|
|
12
11
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
13
12
|
class EnvExec extends EasCommand_1.default {
|
|
13
|
+
static description = 'execute a command with environment variables from the selected environment';
|
|
14
|
+
static contextDefinition = {
|
|
15
|
+
...this.ContextOptions.ProjectId,
|
|
16
|
+
...this.ContextOptions.LoggedIn,
|
|
17
|
+
};
|
|
18
|
+
static flags = {
|
|
19
|
+
...flags_1.EASNonInteractiveFlag,
|
|
20
|
+
};
|
|
21
|
+
static args = [
|
|
22
|
+
{
|
|
23
|
+
name: 'environment',
|
|
24
|
+
required: true,
|
|
25
|
+
description: "Environment to execute the command in. One of 'production', 'preview', or 'development'.",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'bash_command',
|
|
29
|
+
required: true,
|
|
30
|
+
description: 'bash command to execute with the environment variables from the environment',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
14
33
|
async runAsync() {
|
|
15
|
-
const { flags, args } = await this.parse(
|
|
34
|
+
const { flags, args } = await this.parse(EnvExec);
|
|
16
35
|
const parsedFlags = this.sanitizeFlagsAndArgs(flags, args);
|
|
17
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
36
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvExec, {
|
|
18
37
|
nonInteractive: parsedFlags.nonInteractive,
|
|
19
38
|
});
|
|
20
39
|
const environment = parsedFlags.environment ??
|
|
@@ -106,25 +125,4 @@ class EnvExec extends EasCommand_1.default {
|
|
|
106
125
|
return environmentVariables;
|
|
107
126
|
}
|
|
108
127
|
}
|
|
109
|
-
_a = EnvExec;
|
|
110
|
-
EnvExec.description = 'execute a command with environment variables from the selected environment';
|
|
111
|
-
EnvExec.contextDefinition = {
|
|
112
|
-
..._a.ContextOptions.ProjectId,
|
|
113
|
-
..._a.ContextOptions.LoggedIn,
|
|
114
|
-
};
|
|
115
|
-
EnvExec.flags = {
|
|
116
|
-
...flags_1.EASNonInteractiveFlag,
|
|
117
|
-
};
|
|
118
|
-
EnvExec.args = [
|
|
119
|
-
{
|
|
120
|
-
name: 'environment',
|
|
121
|
-
required: true,
|
|
122
|
-
description: "Environment to execute the command in. One of 'production', 'preview', or 'development'.",
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: 'bash_command',
|
|
126
|
-
required: true,
|
|
127
|
-
description: 'bash command to execute with the environment variables from the environment',
|
|
128
|
-
},
|
|
129
|
-
];
|
|
130
128
|
exports.default = EnvExec;
|