Skip to content

Commit a225f8a

Browse files
authored
tail refactor (#7818)
1 parent c6e8a1c commit a225f8a

File tree

2 files changed

+186
-184
lines changed

2 files changed

+186
-184
lines changed

packages/wrangler/src/index.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ import {
138138
closeSentry,
139139
setupSentry,
140140
} from "./sentry";
141-
import { tailHandler, tailOptions } from "./tail";
141+
import { tailCommand } from "./tail";
142142
import registerTriggersSubcommands from "./triggers";
143143
import { typesHandler, typesOptions } from "./type-generation";
144144
import { getAuthFromEnv } from "./user";
@@ -460,12 +460,8 @@ export function createCLIParser(argv: string[]) {
460460
);
461461

462462
// tail
463-
wrangler.command(
464-
"tail [worker]",
465-
"🦚 Start a log tailing session for a Worker",
466-
tailOptions,
467-
tailHandler
468-
);
463+
registry.define([{ command: "wrangler tail", definition: tailCommand }]);
464+
registry.registerNamespace("tail");
469465

470466
// secret
471467
wrangler.command(

0 commit comments

Comments
 (0)