Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
RamIdeas committed Sep 9, 2024
1 parent ad159bd commit 348152c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/wrangler/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
1. define the command with the util defineCommand

```ts
import { defineCommand } from "./util";
import { defineCommand, defineNamespace } from "./util";

// Namespaces are the prefix before the subcommand
// eg "wrangler kv" in "wrangler kv put"
Expand All @@ -29,9 +29,9 @@ defineNamespace({
// Every level of namespaces must be defined
// eg "wrangler kv key" in "wrangler kv key put"
defineNamespace({
command: "wrangler kv",
command: "wrangler kv key",
metadata: {
description: "Commands for interacting with Workers KV",
description: "Commands for interacting with Workers KV data",
status: "stable",
},
});
Expand Down
4 changes: 2 additions & 2 deletions packages/wrangler/src/core/register-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function createCommandRegister(
return {
registerAll() {
for (const [segment, node] of tree.entries()) {
yargs = walkTreeAndRegister(segment, node, yargs, subHelp);
walkTreeAndRegister(segment, node, yargs, subHelp);
tree.delete(segment);
}
},
Expand All @@ -33,7 +33,7 @@ export function createCommandRegister(
}

tree.delete(namespace);
return walkTreeAndRegister(namespace, node, yargs, subHelp);
walkTreeAndRegister(namespace, node, yargs, subHelp);
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/core/teams.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type Teams =
| "Product: R2"
| "Product: D1"
| "Product: Queues"
| "Produce: AI"
| "Product: AI"
| "Product: Hyperdrive"
| "Product: Vectorize"
| "Product: Cloudchamber";
1 change: 1 addition & 0 deletions packages/wrangler/src/core/wrap-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export function wrapCommandDefinition(
await printWranglerBanner();
}

// TODO: log deprecation/status message of parent namespace(s)
if (deprecatedMessage) {
logger.warn(deprecatedMessage);
}
Expand Down

0 comments on commit 348152c

Please sign in to comment.