Skip to content

Commit d89ac4f

Browse files
committed
fix(cli): also fix header profile display for worker commands
Added profile parameter to printStandloneInitialBanner calls in: - workers/build.ts - workers/run.ts - workers/list.ts - workers/create.ts This ensures worker commands also display the correct profile in their headers when using --profile option.
1 parent 74c8741 commit d89ac4f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cli-v3/src/commands/workers/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export function configureWorkersBuildCommand(program: Command) {
121121
.option("--save-logs", "If provided, will save logs even for successful builds")
122122
.action(async (path, options) => {
123123
await handleTelemetry(async () => {
124-
await printStandloneInitialBanner(true);
124+
await printStandloneInitialBanner(true, options.profile);
125125
await workersBuildCommand(path, options);
126126
});
127127
});

packages/cli-v3/src/commands/workers/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function configureWorkersCreateCommand(program: Command) {
4040
)
4141
.action(async (path, options) => {
4242
await handleTelemetry(async () => {
43-
await printStandloneInitialBanner(true);
43+
await printStandloneInitialBanner(true, options.profile);
4444
await workersCreateCommand(path, options);
4545
});
4646
})

packages/cli-v3/src/commands/workers/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function configureWorkersListCommand(program: Command) {
3939
)
4040
.action(async (path, options) => {
4141
await handleTelemetry(async () => {
42-
await printStandloneInitialBanner(true);
42+
await printStandloneInitialBanner(true, options.profile);
4343
await workersListCommand(path, options);
4444
});
4545
})

packages/cli-v3/src/commands/workers/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function configureWorkersRunCommand(program: Command) {
4444
.option("--network <mode>", "The networking mode for the container", "host")
4545
.action(async (path, options) => {
4646
await handleTelemetry(async () => {
47-
await printStandloneInitialBanner(true);
47+
await printStandloneInitialBanner(true, options.profile);
4848
await workersRunCommand(path, options);
4949
});
5050
})

0 commit comments

Comments
 (0)