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
|
@@ -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");
|
|
@@ -12,10 +11,34 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
|
12
11
|
const prompts_1 = require("../../utils/prompts");
|
|
13
12
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
14
13
|
class EnvGet extends EasCommand_1.default {
|
|
14
|
+
static description = 'view an environment variable for the current project or account';
|
|
15
|
+
static contextDefinition = {
|
|
16
|
+
...this.ContextOptions.ProjectId,
|
|
17
|
+
...this.ContextOptions.LoggedIn,
|
|
18
|
+
};
|
|
19
|
+
static args = [
|
|
20
|
+
{
|
|
21
|
+
name: 'environment',
|
|
22
|
+
description: "Current environment of the variable. One of 'production', 'preview', or 'development'.",
|
|
23
|
+
required: false,
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
static flags = {
|
|
27
|
+
'variable-name': core_1.Flags.string({
|
|
28
|
+
description: 'Name of the variable',
|
|
29
|
+
}),
|
|
30
|
+
'variable-environment': core_1.Flags.enum({
|
|
31
|
+
...flags_1.EasEnvironmentFlagParameters,
|
|
32
|
+
description: 'Current environment of the variable',
|
|
33
|
+
}),
|
|
34
|
+
...flags_1.EASVariableFormatFlag,
|
|
35
|
+
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
36
|
+
...flags_1.EASNonInteractiveFlag,
|
|
37
|
+
};
|
|
15
38
|
async runAsync() {
|
|
16
|
-
const { args, flags } = await this.parse(
|
|
39
|
+
const { args, flags } = await this.parse(EnvGet);
|
|
17
40
|
let { 'variable-environment': environment, 'variable-name': name, 'non-interactive': nonInteractive, format, scope, } = this.sanitizeInputs(flags, args);
|
|
18
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
41
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvGet, {
|
|
19
42
|
nonInteractive,
|
|
20
43
|
});
|
|
21
44
|
if (!name) {
|
|
@@ -85,31 +108,6 @@ class EnvGet extends EasCommand_1.default {
|
|
|
85
108
|
return { ...flags, scope };
|
|
86
109
|
}
|
|
87
110
|
}
|
|
88
|
-
_a = EnvGet;
|
|
89
|
-
EnvGet.description = 'view an environment variable for the current project or account';
|
|
90
|
-
EnvGet.contextDefinition = {
|
|
91
|
-
..._a.ContextOptions.ProjectId,
|
|
92
|
-
..._a.ContextOptions.LoggedIn,
|
|
93
|
-
};
|
|
94
|
-
EnvGet.args = [
|
|
95
|
-
{
|
|
96
|
-
name: 'environment',
|
|
97
|
-
description: "Current environment of the variable. One of 'production', 'preview', or 'development'.",
|
|
98
|
-
required: false,
|
|
99
|
-
},
|
|
100
|
-
];
|
|
101
|
-
EnvGet.flags = {
|
|
102
|
-
'variable-name': core_1.Flags.string({
|
|
103
|
-
description: 'Name of the variable',
|
|
104
|
-
}),
|
|
105
|
-
'variable-environment': core_1.Flags.enum({
|
|
106
|
-
...flags_1.EasEnvironmentFlagParameters,
|
|
107
|
-
description: 'Current environment of the variable',
|
|
108
|
-
}),
|
|
109
|
-
...flags_1.EASVariableFormatFlag,
|
|
110
|
-
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
111
|
-
...flags_1.EASNonInteractiveFlag,
|
|
112
|
-
};
|
|
113
111
|
exports.default = EnvGet;
|
|
114
112
|
async function getVariablesAsync(graphqlClient, scope, projectId, name, environment) {
|
|
115
113
|
if (!name) {
|
|
@@ -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");
|
|
@@ -15,10 +14,35 @@ const prompts_1 = require("../../prompts");
|
|
|
15
14
|
const prompts_2 = require("../../utils/prompts");
|
|
16
15
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
17
16
|
class EnvLink extends EasCommand_1.default {
|
|
17
|
+
static description = 'link an account-wide environment variable to the current project';
|
|
18
|
+
// for now we only roll out global account-wide env variables so this should stay hidden
|
|
19
|
+
static hidden = true;
|
|
20
|
+
static flags = {
|
|
21
|
+
'variable-name': core_1.Flags.string({
|
|
22
|
+
description: 'Name of the variable',
|
|
23
|
+
}),
|
|
24
|
+
'variable-environment': core_1.Flags.enum({
|
|
25
|
+
...flags_1.EasEnvironmentFlagParameters,
|
|
26
|
+
description: 'Current environment of the variable to link',
|
|
27
|
+
}),
|
|
28
|
+
...flags_1.EASMultiEnvironmentFlag,
|
|
29
|
+
...flags_1.EASNonInteractiveFlag,
|
|
30
|
+
};
|
|
31
|
+
static args = [
|
|
32
|
+
{
|
|
33
|
+
name: 'environment',
|
|
34
|
+
description: "Environment to pull variables from. One of 'production', 'preview', or 'development'.",
|
|
35
|
+
required: false,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
static contextDefinition = {
|
|
39
|
+
...this.ContextOptions.ProjectId,
|
|
40
|
+
...this.ContextOptions.LoggedIn,
|
|
41
|
+
};
|
|
18
42
|
async runAsync() {
|
|
19
|
-
const { args, flags } = await this.parse(
|
|
43
|
+
const { args, flags } = await this.parse(EnvLink);
|
|
20
44
|
let { 'variable-name': name, 'variable-environment': currentEnvironment, 'non-interactive': nonInteractive, environment: environments, } = this.validateInputs(flags, args);
|
|
21
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
45
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvLink, {
|
|
22
46
|
nonInteractive,
|
|
23
47
|
});
|
|
24
48
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -101,30 +125,4 @@ class EnvLink extends EasCommand_1.default {
|
|
|
101
125
|
};
|
|
102
126
|
}
|
|
103
127
|
}
|
|
104
|
-
_a = EnvLink;
|
|
105
|
-
EnvLink.description = 'link an account-wide environment variable to the current project';
|
|
106
|
-
// for now we only roll out global account-wide env variables so this should stay hidden
|
|
107
|
-
EnvLink.hidden = true;
|
|
108
|
-
EnvLink.flags = {
|
|
109
|
-
'variable-name': core_1.Flags.string({
|
|
110
|
-
description: 'Name of the variable',
|
|
111
|
-
}),
|
|
112
|
-
'variable-environment': core_1.Flags.enum({
|
|
113
|
-
...flags_1.EasEnvironmentFlagParameters,
|
|
114
|
-
description: 'Current environment of the variable to link',
|
|
115
|
-
}),
|
|
116
|
-
...flags_1.EASMultiEnvironmentFlag,
|
|
117
|
-
...flags_1.EASNonInteractiveFlag,
|
|
118
|
-
};
|
|
119
|
-
EnvLink.args = [
|
|
120
|
-
{
|
|
121
|
-
name: 'environment',
|
|
122
|
-
description: "Environment to pull variables from. One of 'production', 'preview', or 'development'.",
|
|
123
|
-
required: false,
|
|
124
|
-
},
|
|
125
|
-
];
|
|
126
|
-
EnvLink.contextDefinition = {
|
|
127
|
-
..._a.ContextOptions.ProjectId,
|
|
128
|
-
..._a.ContextOptions.LoggedIn,
|
|
129
|
-
};
|
|
130
128
|
exports.default = EnvLink;
|
|
@@ -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");
|
|
@@ -39,10 +38,35 @@ async function getVariablesForScopeAsync(graphqlClient, { scope, includingSensit
|
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
40
|
class EnvList extends EasCommand_1.default {
|
|
41
|
+
static description = 'list environment variables for the current project or account';
|
|
42
|
+
static contextDefinition = {
|
|
43
|
+
...this.ContextOptions.ProjectId,
|
|
44
|
+
...this.ContextOptions.LoggedIn,
|
|
45
|
+
};
|
|
46
|
+
static flags = {
|
|
47
|
+
'include-sensitive': core_1.Flags.boolean({
|
|
48
|
+
description: 'Display sensitive values in the output',
|
|
49
|
+
default: false,
|
|
50
|
+
}),
|
|
51
|
+
'include-file-content': core_1.Flags.boolean({
|
|
52
|
+
description: 'Display files content in the output',
|
|
53
|
+
default: false,
|
|
54
|
+
}),
|
|
55
|
+
...flags_1.EASMultiEnvironmentFlag,
|
|
56
|
+
...flags_1.EASVariableFormatFlag,
|
|
57
|
+
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
58
|
+
};
|
|
59
|
+
static args = [
|
|
60
|
+
{
|
|
61
|
+
name: 'environment',
|
|
62
|
+
description: "Environment to list the variables from. One of 'production', 'preview', or 'development'.",
|
|
63
|
+
required: false,
|
|
64
|
+
},
|
|
65
|
+
];
|
|
42
66
|
async runAsync() {
|
|
43
|
-
const { args, flags } = await this.parse(
|
|
67
|
+
const { args, flags } = await this.parse(EnvList);
|
|
44
68
|
let { format, environment: environments, scope, 'include-sensitive': includeSensitive, 'include-file-content': includeFileContent, 'non-interactive': nonInteractive, } = this.sanitizeInputs(flags, args);
|
|
45
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
69
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvList, {
|
|
46
70
|
nonInteractive: true,
|
|
47
71
|
});
|
|
48
72
|
if (!environments) {
|
|
@@ -99,30 +123,4 @@ class EnvList extends EasCommand_1.default {
|
|
|
99
123
|
};
|
|
100
124
|
}
|
|
101
125
|
}
|
|
102
|
-
_a = EnvList;
|
|
103
|
-
EnvList.description = 'list environment variables for the current project or account';
|
|
104
|
-
EnvList.contextDefinition = {
|
|
105
|
-
..._a.ContextOptions.ProjectId,
|
|
106
|
-
..._a.ContextOptions.LoggedIn,
|
|
107
|
-
};
|
|
108
|
-
EnvList.flags = {
|
|
109
|
-
'include-sensitive': core_1.Flags.boolean({
|
|
110
|
-
description: 'Display sensitive values in the output',
|
|
111
|
-
default: false,
|
|
112
|
-
}),
|
|
113
|
-
'include-file-content': core_1.Flags.boolean({
|
|
114
|
-
description: 'Display files content in the output',
|
|
115
|
-
default: false,
|
|
116
|
-
}),
|
|
117
|
-
...flags_1.EASMultiEnvironmentFlag,
|
|
118
|
-
...flags_1.EASVariableFormatFlag,
|
|
119
|
-
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
120
|
-
};
|
|
121
|
-
EnvList.args = [
|
|
122
|
-
{
|
|
123
|
-
name: 'environment',
|
|
124
|
-
description: "Environment to list the variables from. One of 'production', 'preview', or 'development'.",
|
|
125
|
-
required: false,
|
|
126
|
-
},
|
|
127
|
-
];
|
|
128
126
|
exports.default = EnvList;
|
|
@@ -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");
|
|
@@ -15,8 +14,29 @@ const prompts_1 = require("../../prompts");
|
|
|
15
14
|
const prompts_2 = require("../../utils/prompts");
|
|
16
15
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
17
16
|
class EnvPull extends EasCommand_1.default {
|
|
17
|
+
static description = 'pull environment variables for the selected environment to .env file';
|
|
18
|
+
static contextDefinition = {
|
|
19
|
+
...this.ContextOptions.ProjectId,
|
|
20
|
+
...this.ContextOptions.LoggedIn,
|
|
21
|
+
...this.ContextOptions.ProjectDir,
|
|
22
|
+
};
|
|
23
|
+
static args = [
|
|
24
|
+
{
|
|
25
|
+
name: 'environment',
|
|
26
|
+
description: "Environment to pull variables from. One of 'production', 'preview', or 'development'.",
|
|
27
|
+
required: false,
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
static flags = {
|
|
31
|
+
...flags_1.EASNonInteractiveFlag,
|
|
32
|
+
...flags_1.EASEnvironmentFlag,
|
|
33
|
+
path: core_1.Flags.string({
|
|
34
|
+
description: 'Path to the result `.env` file',
|
|
35
|
+
default: '.env.local',
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
18
38
|
async runAsync() {
|
|
19
|
-
let { args: { environment: argEnvironment }, flags: { environment: flagEnvironment, path: targetPath, 'non-interactive': nonInteractive }, } = await this.parse(
|
|
39
|
+
let { args: { environment: argEnvironment }, flags: { environment: flagEnvironment, path: targetPath, 'non-interactive': nonInteractive }, } = await this.parse(EnvPull);
|
|
20
40
|
let environment = flagEnvironment?.toUpperCase() ?? argEnvironment?.toUpperCase();
|
|
21
41
|
if (!environment) {
|
|
22
42
|
environment = await (0, prompts_2.promptVariableEnvironmentAsync)({ nonInteractive });
|
|
@@ -24,7 +44,7 @@ class EnvPull extends EasCommand_1.default {
|
|
|
24
44
|
if (!(0, variableUtils_1.isEnvironment)(environment)) {
|
|
25
45
|
throw new Error("Invalid environment. Use one of 'production', 'preview', or 'development'.");
|
|
26
46
|
}
|
|
27
|
-
const { projectId, loggedIn: { graphqlClient }, projectDir, } = await this.getContextAsync(
|
|
47
|
+
const { projectId, loggedIn: { graphqlClient }, projectDir, } = await this.getContextAsync(EnvPull, {
|
|
28
48
|
nonInteractive,
|
|
29
49
|
});
|
|
30
50
|
targetPath = targetPath ?? '.env.local';
|
|
@@ -84,26 +104,4 @@ class EnvPull extends EasCommand_1.default {
|
|
|
84
104
|
}
|
|
85
105
|
}
|
|
86
106
|
}
|
|
87
|
-
_a = EnvPull;
|
|
88
|
-
EnvPull.description = 'pull environment variables for the selected environment to .env file';
|
|
89
|
-
EnvPull.contextDefinition = {
|
|
90
|
-
..._a.ContextOptions.ProjectId,
|
|
91
|
-
..._a.ContextOptions.LoggedIn,
|
|
92
|
-
..._a.ContextOptions.ProjectDir,
|
|
93
|
-
};
|
|
94
|
-
EnvPull.args = [
|
|
95
|
-
{
|
|
96
|
-
name: 'environment',
|
|
97
|
-
description: "Environment to pull variables from. One of 'production', 'preview', or 'development'.",
|
|
98
|
-
required: false,
|
|
99
|
-
},
|
|
100
|
-
];
|
|
101
|
-
EnvPull.flags = {
|
|
102
|
-
...flags_1.EASNonInteractiveFlag,
|
|
103
|
-
...flags_1.EASEnvironmentFlag,
|
|
104
|
-
path: core_1.Flags.string({
|
|
105
|
-
description: 'Path to the result `.env` file',
|
|
106
|
-
default: '.env.local',
|
|
107
|
-
}),
|
|
108
|
-
};
|
|
109
107
|
exports.default = EnvPull;
|
|
@@ -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");
|
|
@@ -16,10 +15,29 @@ const prompts_1 = require("../../prompts");
|
|
|
16
15
|
const prompts_2 = require("../../utils/prompts");
|
|
17
16
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
18
17
|
class EnvPush extends EasCommand_1.default {
|
|
18
|
+
static description = 'push environment variables from .env file to the selected environment';
|
|
19
|
+
static contextDefinition = {
|
|
20
|
+
...this.ContextOptions.ProjectId,
|
|
21
|
+
...this.ContextOptions.LoggedIn,
|
|
22
|
+
};
|
|
23
|
+
static flags = {
|
|
24
|
+
...flags_1.EASMultiEnvironmentFlag,
|
|
25
|
+
path: core_1.Flags.string({
|
|
26
|
+
description: 'Path to the input `.env` file',
|
|
27
|
+
default: '.env.local',
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
static args = [
|
|
31
|
+
{
|
|
32
|
+
name: 'environment',
|
|
33
|
+
description: "Environment to push variables to. One of 'production', 'preview', or 'development'.",
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
36
|
+
];
|
|
19
37
|
async runAsync() {
|
|
20
|
-
const { args, flags } = await this.parse(
|
|
38
|
+
const { args, flags } = await this.parse(EnvPush);
|
|
21
39
|
let { environment: environments, path: envPath } = this.parseFlagsAndArgs(flags, args);
|
|
22
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
40
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvPush, {
|
|
23
41
|
nonInteractive: false,
|
|
24
42
|
});
|
|
25
43
|
if (!environments) {
|
|
@@ -161,24 +179,4 @@ class EnvPush extends EasCommand_1.default {
|
|
|
161
179
|
return pushInput;
|
|
162
180
|
}
|
|
163
181
|
}
|
|
164
|
-
_a = EnvPush;
|
|
165
|
-
EnvPush.description = 'push environment variables from .env file to the selected environment';
|
|
166
|
-
EnvPush.contextDefinition = {
|
|
167
|
-
..._a.ContextOptions.ProjectId,
|
|
168
|
-
..._a.ContextOptions.LoggedIn,
|
|
169
|
-
};
|
|
170
|
-
EnvPush.flags = {
|
|
171
|
-
...flags_1.EASMultiEnvironmentFlag,
|
|
172
|
-
path: core_1.Flags.string({
|
|
173
|
-
description: 'Path to the input `.env` file',
|
|
174
|
-
default: '.env.local',
|
|
175
|
-
}),
|
|
176
|
-
};
|
|
177
|
-
EnvPush.args = [
|
|
178
|
-
{
|
|
179
|
-
name: 'environment',
|
|
180
|
-
description: "Environment to push variables to. One of 'production', 'preview', or 'development'.",
|
|
181
|
-
required: false,
|
|
182
|
-
},
|
|
183
|
-
];
|
|
184
182
|
exports.default = EnvPush;
|
|
@@ -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");
|
|
@@ -15,10 +14,31 @@ const prompts_1 = require("../../prompts");
|
|
|
15
14
|
const prompts_2 = require("../../utils/prompts");
|
|
16
15
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
17
16
|
class EnvUnlink extends EasCommand_1.default {
|
|
17
|
+
static description = 'unlink an account-wide environment variable from the current project';
|
|
18
|
+
// for now we only roll out global account-wide env variables so this should stay hidden
|
|
19
|
+
static hidden = true;
|
|
20
|
+
static flags = {
|
|
21
|
+
'variable-name': core_1.Flags.string({
|
|
22
|
+
description: 'Name of the variable',
|
|
23
|
+
}),
|
|
24
|
+
...flags_1.EASMultiEnvironmentFlag,
|
|
25
|
+
...flags_1.EASNonInteractiveFlag,
|
|
26
|
+
};
|
|
27
|
+
static contextDefinition = {
|
|
28
|
+
...this.ContextOptions.ProjectId,
|
|
29
|
+
...this.ContextOptions.LoggedIn,
|
|
30
|
+
};
|
|
31
|
+
static args = [
|
|
32
|
+
{
|
|
33
|
+
name: 'environment',
|
|
34
|
+
description: "Environment to unlink the variable from. One of 'production', 'preview', or 'development'.",
|
|
35
|
+
required: false,
|
|
36
|
+
},
|
|
37
|
+
];
|
|
18
38
|
async runAsync() {
|
|
19
|
-
const { args, flags } = await this.parse(
|
|
39
|
+
const { args, flags } = await this.parse(EnvUnlink);
|
|
20
40
|
let { 'variable-name': name, 'non-interactive': nonInteractive, environment: unlinkEnvironments, } = this.validateInputs(flags, args);
|
|
21
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
41
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvUnlink, {
|
|
22
42
|
nonInteractive,
|
|
23
43
|
});
|
|
24
44
|
const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
|
|
@@ -94,26 +114,4 @@ class EnvUnlink extends EasCommand_1.default {
|
|
|
94
114
|
return flags;
|
|
95
115
|
}
|
|
96
116
|
}
|
|
97
|
-
_a = EnvUnlink;
|
|
98
|
-
EnvUnlink.description = 'unlink an account-wide environment variable from the current project';
|
|
99
|
-
// for now we only roll out global account-wide env variables so this should stay hidden
|
|
100
|
-
EnvUnlink.hidden = true;
|
|
101
|
-
EnvUnlink.flags = {
|
|
102
|
-
'variable-name': core_1.Flags.string({
|
|
103
|
-
description: 'Name of the variable',
|
|
104
|
-
}),
|
|
105
|
-
...flags_1.EASMultiEnvironmentFlag,
|
|
106
|
-
...flags_1.EASNonInteractiveFlag,
|
|
107
|
-
};
|
|
108
|
-
EnvUnlink.contextDefinition = {
|
|
109
|
-
..._a.ContextOptions.ProjectId,
|
|
110
|
-
..._a.ContextOptions.LoggedIn,
|
|
111
|
-
};
|
|
112
|
-
EnvUnlink.args = [
|
|
113
|
-
{
|
|
114
|
-
name: 'environment',
|
|
115
|
-
description: "Environment to unlink the variable from. One of 'production', 'preview', or 'development'.",
|
|
116
|
-
required: false,
|
|
117
|
-
},
|
|
118
|
-
];
|
|
119
117
|
exports.default = EnvUnlink;
|
|
@@ -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");
|
|
@@ -18,10 +17,46 @@ const prompts_1 = require("../../prompts");
|
|
|
18
17
|
const prompts_2 = require("../../utils/prompts");
|
|
19
18
|
const variableUtils_1 = require("../../utils/variableUtils");
|
|
20
19
|
class EnvUpdate extends EasCommand_1.default {
|
|
20
|
+
static description = 'update an environment variable on the current project or account';
|
|
21
|
+
static flags = {
|
|
22
|
+
'variable-name': core_1.Flags.string({
|
|
23
|
+
description: 'Current name of the variable',
|
|
24
|
+
}),
|
|
25
|
+
'variable-environment': core_1.Flags.enum({
|
|
26
|
+
...flags_1.EasEnvironmentFlagParameters,
|
|
27
|
+
description: 'Current environment of the variable to update',
|
|
28
|
+
}),
|
|
29
|
+
name: core_1.Flags.string({
|
|
30
|
+
description: 'New name of the variable',
|
|
31
|
+
}),
|
|
32
|
+
value: core_1.Flags.string({
|
|
33
|
+
description: 'New value or the variable',
|
|
34
|
+
}),
|
|
35
|
+
type: core_1.Flags.enum({
|
|
36
|
+
description: 'The type of variable',
|
|
37
|
+
options: ['string', 'file'],
|
|
38
|
+
}),
|
|
39
|
+
...flags_1.EASVariableVisibilityFlag,
|
|
40
|
+
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
41
|
+
...flags_1.EASMultiEnvironmentFlag,
|
|
42
|
+
...flags_1.EASNonInteractiveFlag,
|
|
43
|
+
};
|
|
44
|
+
static args = [
|
|
45
|
+
{
|
|
46
|
+
name: 'environment',
|
|
47
|
+
description: "Current environment of the variable to update. One of 'production', 'preview', or 'development'.",
|
|
48
|
+
required: false,
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
static contextDefinition = {
|
|
52
|
+
...this.ContextOptions.ProjectId,
|
|
53
|
+
...this.ContextOptions.Analytics,
|
|
54
|
+
...this.ContextOptions.LoggedIn,
|
|
55
|
+
};
|
|
21
56
|
async runAsync() {
|
|
22
|
-
const { args, flags } = await this.parse(
|
|
57
|
+
const { args, flags } = await this.parse(EnvUpdate);
|
|
23
58
|
const { name, value: rawValue, scope, 'variable-name': currentName, 'variable-environment': currentEnvironment, 'non-interactive': nonInteractive, environment: environments, type, visibility, } = this.sanitizeInputs(flags, args);
|
|
24
|
-
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(
|
|
59
|
+
const { projectId, loggedIn: { graphqlClient }, } = await this.getContextAsync(EnvUpdate, {
|
|
25
60
|
nonInteractive,
|
|
26
61
|
});
|
|
27
62
|
const [projectDisplayName, ownerAccount] = await Promise.all([
|
|
@@ -185,41 +220,4 @@ class EnvUpdate extends EasCommand_1.default {
|
|
|
185
220
|
};
|
|
186
221
|
}
|
|
187
222
|
}
|
|
188
|
-
_a = EnvUpdate;
|
|
189
|
-
EnvUpdate.description = 'update an environment variable on the current project or account';
|
|
190
|
-
EnvUpdate.flags = {
|
|
191
|
-
'variable-name': core_1.Flags.string({
|
|
192
|
-
description: 'Current name of the variable',
|
|
193
|
-
}),
|
|
194
|
-
'variable-environment': core_1.Flags.enum({
|
|
195
|
-
...flags_1.EasEnvironmentFlagParameters,
|
|
196
|
-
description: 'Current environment of the variable to update',
|
|
197
|
-
}),
|
|
198
|
-
name: core_1.Flags.string({
|
|
199
|
-
description: 'New name of the variable',
|
|
200
|
-
}),
|
|
201
|
-
value: core_1.Flags.string({
|
|
202
|
-
description: 'New value or the variable',
|
|
203
|
-
}),
|
|
204
|
-
type: core_1.Flags.enum({
|
|
205
|
-
description: 'The type of variable',
|
|
206
|
-
options: ['string', 'file'],
|
|
207
|
-
}),
|
|
208
|
-
...flags_1.EASVariableVisibilityFlag,
|
|
209
|
-
...flags_1.EASEnvironmentVariableScopeFlag,
|
|
210
|
-
...flags_1.EASMultiEnvironmentFlag,
|
|
211
|
-
...flags_1.EASNonInteractiveFlag,
|
|
212
|
-
};
|
|
213
|
-
EnvUpdate.args = [
|
|
214
|
-
{
|
|
215
|
-
name: 'environment',
|
|
216
|
-
description: "Current environment of the variable to update. One of 'production', 'preview', or 'development'.",
|
|
217
|
-
required: false,
|
|
218
|
-
},
|
|
219
|
-
];
|
|
220
|
-
EnvUpdate.contextDefinition = {
|
|
221
|
-
..._a.ContextOptions.ProjectId,
|
|
222
|
-
..._a.ContextOptions.Analytics,
|
|
223
|
-
..._a.ContextOptions.LoggedIn,
|
|
224
|
-
};
|
|
225
223
|
exports.default = EnvUpdate;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
|
+
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
3
|
+
import { BuildStatus } from '../../graphql/generated';
|
|
4
|
+
import { RequestedPlatform } from '../../platform';
|
|
5
|
+
export default class FingerprintCompare extends EasCommand {
|
|
6
|
+
static description: string;
|
|
7
|
+
static hidden: boolean;
|
|
8
|
+
static flags: {
|
|
9
|
+
json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
'build-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
|
|
12
|
+
};
|
|
13
|
+
static contextDefinition: {
|
|
14
|
+
vcsClient: import("../../commandUtils/context/VcsClientContextField").default;
|
|
15
|
+
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
16
|
+
privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
|
|
17
|
+
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
18
|
+
};
|
|
19
|
+
runAsync(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export declare function selectBuildToCompareAsync(graphqlClient: ExpoGraphqlClient, projectId: string, projectDisplayName: string, { filters, }?: {
|
|
22
|
+
filters?: {
|
|
23
|
+
statuses?: BuildStatus[];
|
|
24
|
+
platform?: RequestedPlatform;
|
|
25
|
+
profile?: string;
|
|
26
|
+
hasFingerprint?: boolean;
|
|
27
|
+
};
|
|
28
|
+
}): Promise<string | null>;
|