Skip to content

Commit 92874fe

Browse files
authored
fix secrets-store namespace registration (#9242)
1 parent 56bd900 commit 92874fe

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/wrangler/src/__tests__/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ describe("wrangler", () => {
6262
wrangler pubsub 📮 Manage Pub/Sub brokers [private beta]
6363
wrangler dispatch-namespace 🏗️ Manage dispatch namespaces
6464
wrangler ai 🤖 Manage AI models
65+
wrangler secrets-store 🔐 Manage the Secrets Store [alpha]
6566
wrangler workflows 🔁 Manage Workflows
6667
wrangler pipelines 🚰 Manage Cloudflare Pipelines [open-beta]
6768
wrangler login 🔓 Login to Cloudflare
6869
wrangler logout 🚪 Logout from Cloudflare
6970
wrangler whoami 🕵️ Retrieve your user information
70-
wrangler secrets-store 🔐 Manage the Secrets Store [alpha]
7171
7272
GLOBAL FLAGS
7373
-c, --config Path to Wrangler configuration file [string]
@@ -122,12 +122,12 @@ describe("wrangler", () => {
122122
wrangler pubsub 📮 Manage Pub/Sub brokers [private beta]
123123
wrangler dispatch-namespace 🏗️ Manage dispatch namespaces
124124
wrangler ai 🤖 Manage AI models
125+
wrangler secrets-store 🔐 Manage the Secrets Store [alpha]
125126
wrangler workflows 🔁 Manage Workflows
126127
wrangler pipelines 🚰 Manage Cloudflare Pipelines [open-beta]
127128
wrangler login 🔓 Login to Cloudflare
128129
wrangler logout 🚪 Logout from Cloudflare
129130
wrangler whoami 🕵️ Retrieve your user information
130-
wrangler secrets-store 🔐 Manage the Secrets Store [alpha]
131131
132132
GLOBAL FLAGS
133133
-c, --config Path to Wrangler configuration file [string]

packages/wrangler/src/core/CommandRegistry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export class CommandRegistry {
8888

8989
/**
9090
* Registers a specific namespace if not already registered.
91+
* TODO: Remove this once all commands use the command registry.
92+
* See https://github.com/cloudflare/workers-sdk/pull/7357#discussion_r1862138470 for more details.
9193
*/
9294
registerNamespace(namespace: string) {
9395
if (this.#registeredNamespaces.has(namespace)) {

packages/wrangler/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ export function createCLIParser(argv: string[]) {
12461246
definition: secretsStoreSecretDuplicateCommand,
12471247
},
12481248
]);
1249-
registry.registerNamespace("cert");
1249+
registry.registerNamespace("secrets-store");
12501250

12511251
// workflows
12521252
registry.define([

0 commit comments

Comments
 (0)