-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
473 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"wrangler": minor | ||
--- | ||
|
||
feat: add `versions secret put` | ||
|
||
This allows for you to add a new secret even if the latest version is not fully deployed. A new version with this secret will be created, the existing secrets and config are copied from the latest version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { versionsSecretPutHandler } from "./put"; | ||
import type { CommonYargsArgv } from "../../yargs-types"; | ||
|
||
export function versionsSecretsPutOptions(yargs: CommonYargsArgv) { | ||
return yargs | ||
.positional("key", { | ||
describe: "The variable name to be accessible in the Worker", | ||
type: "string", | ||
}) | ||
.option("name", { | ||
describe: "Name of the Worker", | ||
type: "string", | ||
requiresArg: true, | ||
}) | ||
.option("message", { | ||
describe: "Description of this deployment (optional)", | ||
type: "string", | ||
requiresArg: true, | ||
}) | ||
.option("tag", { | ||
describe: "A tag for this version (optional)", | ||
type: "string", | ||
requiresArg: true, | ||
}); | ||
} | ||
|
||
export const versionsSecrets = (secretYargs: CommonYargsArgv) => { | ||
return secretYargs.command( | ||
"put <key>", | ||
"Create or update a secret variable for a Worker", | ||
versionsSecretsPutOptions, | ||
versionsSecretPutHandler | ||
); | ||
}; |
Oops, something went wrong.