From 21059332a00056635f641937e0b59409575e1be4 Mon Sep 17 00:00:00 2001 From: Andy Jessop Date: Thu, 21 Nov 2024 13:05:42 +0100 Subject: [PATCH] wip --- packages/wrangler/src/versions/secrets/bulk.ts | 2 +- packages/wrangler/src/versions/secrets/list.ts | 4 +--- packages/wrangler/src/versions/secrets/put.ts | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/wrangler/src/versions/secrets/bulk.ts b/packages/wrangler/src/versions/secrets/bulk.ts index 5db6136de198..6d955c0836f0 100644 --- a/packages/wrangler/src/versions/secrets/bulk.ts +++ b/packages/wrangler/src/versions/secrets/bulk.ts @@ -13,7 +13,7 @@ import { copyWorkerVersionWithNewSecrets } from "./index"; import type { WorkerVersion } from "./index"; defineCommand({ - command: "wrangler versions secrets bulk", + command: "wrangler versions secret bulk", metadata: { description: "Create or update a secret variable for a Worker", owner: "Workers: Authoring and Testing", diff --git a/packages/wrangler/src/versions/secrets/list.ts b/packages/wrangler/src/versions/secrets/list.ts index 213b09444fa7..afbc2012fd35 100644 --- a/packages/wrangler/src/versions/secrets/list.ts +++ b/packages/wrangler/src/versions/secrets/list.ts @@ -4,15 +4,13 @@ import { defineCommand } from "../../core"; import { UserError } from "../../errors"; import { getLegacyScriptName } from "../../index"; import { logger } from "../../logger"; -import { printWranglerBanner } from "../../update-check"; import { requireAuth } from "../../user"; import { fetchDeploymentVersions, fetchLatestDeployment } from "../api"; import type { VersionDetails } from "."; -import type { StrictYargsOptionsToInterface } from "../../yargs-types"; import type { ApiVersion, VersionCache } from "../types"; defineCommand({ - command: "wrangler versions secrets list", + command: "wrangler versions secret list", metadata: { description: "List the secrets currently deployed", owner: "Workers: Authoring and Testing", diff --git a/packages/wrangler/src/versions/secrets/put.ts b/packages/wrangler/src/versions/secrets/put.ts index 2172e624dd92..5848f09bfb74 100644 --- a/packages/wrangler/src/versions/secrets/put.ts +++ b/packages/wrangler/src/versions/secrets/put.ts @@ -1,18 +1,16 @@ import { fetchResult } from "../../cfetch"; -import { readConfig } from "../../config"; import { defineCommand } from "../../core"; import { prompt } from "../../dialogs"; import { UserError } from "../../errors"; import { getLegacyScriptName } from "../../index"; import { logger } from "../../logger"; -import { printWranglerBanner } from "../../update-check"; import { requireAuth } from "../../user"; import { readFromStdin, trimTrailingWhitespace } from "../../utils/std"; import { copyWorkerVersionWithNewSecrets } from "./index"; import type { WorkerVersion } from "./index"; defineCommand({ - command: "wrangler versions secrets put", + command: "wrangler versions secret put", metadata: { description: "Create or update a secret variable for a Worker", owner: "Workers: Authoring and Testing",