Skip to content

Commit 0cf6456

Browse files
committed
Make "cloudchamber apply" always non-interactive
This matches the behavior of "wrangler deploy" which is also always non-interactive.
1 parent c87a86e commit 0cf6456

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

packages/wrangler/src/cloudchamber/apply.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ export async function apply(
423423
skipDefaults: boolean | undefined;
424424
env?: string;
425425
imageUpdateRequired?: boolean;
426-
skipPrompts?: boolean;
427426
},
428427
config: Config
429428
) {
@@ -703,21 +702,6 @@ export async function apply(
703702
endSection("No changes to be made");
704703
return;
705704
}
706-
if (!args.skipPrompts && !isNonInteractiveOrCI()) {
707-
const yes = await processArgument<boolean>(
708-
{ confirm: undefined },
709-
"confirm",
710-
{
711-
type: "confirm",
712-
question: "Do you want to apply these changes?",
713-
label: "",
714-
}
715-
);
716-
if (!yes) {
717-
cancel("Not applying changes");
718-
return;
719-
}
720-
}
721705

722706
function formatError(err: ApiError): string {
723707
// TODO: this is bad bad. Please fix like we do in create.ts.

packages/wrangler/src/cloudchamber/deploy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ export async function deployContainers(
123123
skipDefaults: false,
124124
env,
125125
imageUpdateRequired: buildResult.pushed,
126-
skipPrompts: true,
127126
},
128127
configuration
129128
);

0 commit comments

Comments
 (0)