@capawesome/cli 4.1.0-dev.f5ef8ba.1771047437 → 4.1.0
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.
|
@@ -40,10 +40,6 @@ export default defineCommand({
|
|
|
40
40
|
.describe('Exit immediately after creating the build without waiting for completion.'),
|
|
41
41
|
environment: z.string().optional().describe('The name of the environment to use for the build.'),
|
|
42
42
|
gitRef: z.string().optional().describe('The Git reference (branch, tag, or commit SHA) to build.'),
|
|
43
|
-
sourceUrl: z
|
|
44
|
-
.string()
|
|
45
|
-
.optional()
|
|
46
|
-
.describe('The URL to a hosted zip file containing the source code for the build.'),
|
|
47
43
|
ipa: z
|
|
48
44
|
.union([z.boolean(), z.string()])
|
|
49
45
|
.optional()
|
|
@@ -72,7 +68,7 @@ export default defineCommand({
|
|
|
72
68
|
yes: z.boolean().optional().describe('Skip confirmation prompts.'),
|
|
73
69
|
}), { y: 'yes' }),
|
|
74
70
|
action: async (options) => {
|
|
75
|
-
let { appId, platform, type, gitRef,
|
|
71
|
+
let { appId, platform, type, gitRef, environment, certificate, json, stack } = options;
|
|
76
72
|
// Check if the user is logged in
|
|
77
73
|
if (!authorizationService.hasAuthorizationToken()) {
|
|
78
74
|
consola.error('You must be logged in to run this command. Please run the `login` command first.');
|
|
@@ -83,11 +79,6 @@ export default defineCommand({
|
|
|
83
79
|
consola.error('The --detached flag cannot be used with --apk, --aab, --ipa, or --zip flags.');
|
|
84
80
|
process.exit(1);
|
|
85
81
|
}
|
|
86
|
-
// Validate that gitRef and sourceUrl are mutually exclusive
|
|
87
|
-
if (gitRef && sourceUrl) {
|
|
88
|
-
consola.error('The --gitRef and --sourceUrl flags are mutually exclusive. Please provide only one.');
|
|
89
|
-
process.exit(1);
|
|
90
|
-
}
|
|
91
82
|
// Prompt for app ID if not provided
|
|
92
83
|
if (!appId) {
|
|
93
84
|
if (!isInteractive()) {
|
|
@@ -145,10 +136,10 @@ export default defineCommand({
|
|
|
145
136
|
process.exit(1);
|
|
146
137
|
}
|
|
147
138
|
}
|
|
148
|
-
// Prompt for git ref if not provided
|
|
149
|
-
if (!gitRef
|
|
139
|
+
// Prompt for git ref if not provided
|
|
140
|
+
if (!gitRef) {
|
|
150
141
|
if (!isInteractive()) {
|
|
151
|
-
consola.error('You must provide a git ref
|
|
142
|
+
consola.error('You must provide a git ref when running in non-interactive environment.');
|
|
152
143
|
process.exit(1);
|
|
153
144
|
}
|
|
154
145
|
gitRef = await prompt('Enter the Git reference (branch, tag, or commit SHA):', {
|
|
@@ -228,7 +219,6 @@ export default defineCommand({
|
|
|
228
219
|
stack,
|
|
229
220
|
gitRef,
|
|
230
221
|
platform,
|
|
231
|
-
sourceUrl,
|
|
232
222
|
type,
|
|
233
223
|
});
|
|
234
224
|
consola.info(`Build ID: ${response.id}`);
|