-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pipelines commands into separate files, rename some options (#…
…7769) * Refactor pipelines commands into separate files, rename some options **Pipelines is currently in closed beta, renaming these without providing aliases _should_ have no impact** Moving each of the subcommand handlers and options for each subcommand into its own file. This also renames many of the parameters to be more specific. The following parameters have been renamed: | Previous Name | New Name | | ---- | ---- | | access-key-id | r2-access-key-id | | secret-access-key | r2-secret-access-key | | transform | transform-worker | | r2 | r2-bucket | | prefix | r2-prefix | | binding | enable-worker-binding | | http | enable-http | | authentication | require-http-auth | | filename | file-template | | filepath | partition-template | Adds the following new option for `create` and `update` commands: ``` --cors-origins CORS origin allowlist for HTTP endpoint (use * for any origin) [array] ``` Closes https://jira.cfdata.org/browse/PIPE-160. * Fix non-exported type * Add snapshot for create pipeline * Add support for R2 staging, print banner for list cmd * Refactor our verifyBucketAccess function This also replaces the use of retryOnError with a for-loop as retryOnError wasn't working as expected. * Update CORS Origins when provided Previously this was nested under the `enableHttp` block which doesn't make sense if HTTP is already enabled and the user just wants to update the authentication or CORS settings. * Add test for pipeline cors update * Fix default for partition template * remove defaults and rely on API defaults instead * Use proper capitalization for Workers and Pipelines Also split the previous changeset into two. * Apply suggestions from code review Co-authored-by: Edmund Hung <[email protected]> * Drop metrics calls, use chalk for CLI flag groups Based on PR feedback, drop the metrics calls and use chalk.bold for CLI flag groups. Snapshots were updated for tests. * Update .changeset/short-kids-hunt.md Co-authored-by: Edmund Hung <[email protected]> --------- Co-authored-by: Edmund Hung <[email protected]> Co-authored-by: emily-shen <[email protected]>
- Loading branch information
1 parent
b9805d7
commit 6abe69c
Showing
11 changed files
with
952 additions
and
533 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,9 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Adds the following new option for `wrangler pipelines create` and `wrangler pipelines update` commands: | ||
|
||
``` | ||
--cors-origins CORS origin allowlist for HTTP endpoint (use * for any origin) [array] | ||
``` |
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,20 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Rename wrangler pipelines <create|update> flags | ||
|
||
The following parameters have been renamed: | ||
|
||
| Previous Name | New Name | | ||
| ----------------- | --------------------- | | ||
| access-key-id | r2-access-key-id | | ||
| secret-access-key | r2-secret-access-key | | ||
| transform | transform-worker | | ||
| r2 | r2-bucket | | ||
| prefix | r2-prefix | | ||
| binding | enable-worker-binding | | ||
| http | enable-http | | ||
| authentication | require-http-auth | | ||
| filename | file-template | | ||
| filepath | partition-template | |
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
Oops, something went wrong.