Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Feat kv commands #405

Merged
merged 62 commits into from
Sep 13, 2019
Merged

Feat kv commands #405

merged 62 commits into from
Sep 13, 2019

Conversation

ashleymichal
Copy link
Contributor

@ashleymichal ashleymichal commented Aug 6, 2019

Closes #339. Comprises complete support for KV commands in Wrangler, should close https://github.com/cloudflare/wrangler/milestone/7 also.

keep this branch up to date with master using ui merges rather than rebasing.

ashleygwilliams
ashleygwilliams previously approved these changes Aug 6, 2019
Copy link
Contributor

@ashleygwilliams ashleygwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. one small question but not a huge deal

src/commands/kv/mod.rs Outdated Show resolved Hide resolved
src/commands/kv/mod.rs Show resolved Hide resolved
gabbifish and others added 6 commits September 11, 2019 14:12
* Add more helpful messaging when creating namespace; output to put in wrangler.toml
* Print out namespaces list as json by default
* Add reminder to remove binding after calling , also ensure binding names are valid
* Re-order kv commands docs to be more user friendly + Add Getting Started and Concepts sections to kv docs
@EverlastingBugstopper EverlastingBugstopper changed the title [WIP] - Feat kv commands Feat kv commands Sep 12, 2019
@@ -218,6 +218,25 @@ name = "my-worker-staging"

Your default `wrangler build`, `wrangler preview`, and `wrangler publish` commands will all build with `webpack.dev.js`, as will `wrangler build -e staging`, `wrangler preview -e staging`, and `wrangler publish -e staging`. `wrangler build -e production`, `wrangler preview -e production`, and `wrangler publish -e production` would all use your `webpack.config.js` file.

### KV Namespaces with environments

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file was renamed. I might be wrong but I believe I saw a link to this doc printed out in my terminal.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct

@gabbifish do you mind updating the instances of /docs/environments.md to /docs/content/environments.md?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do!

gabbifish and others added 6 commits September 12, 2019 14:24
Allow use of same json file to bulk delete as bulk put
* Ensure that when a subcommand is not provided to a kv: command, do not panic. STILL DISPLAYS HELP INFORMATION WITH --binding AND --namespace-id INFO THAT IS INCONSISTENT WITH USAGE (b/c globals are paired with arggroups here)
README.md Outdated
@@ -46,7 +46,15 @@ General documentation surrounding workers development and using `wrangler` can b
wrangler generate <name> <template> --type=["webpack", "javascript", "rust"]
```

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve conflict in readme

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nooooo

README.md Outdated
| route | The route you would like to publish to | `route = "example.com/my-worker/*"` |
| zone_id | Your Cloudflare zone ID, this can be found in the Cloudflare dashboard | `zone_id = "b6558acaf2b4cad1f2b51c5236a6b972"` |

>>>>>>> master
#### Publishing the same code to multiple places

If you would like to be able to publish your code to multiple places, please see the documentation for [environments](https://github.com/cloudflare/wrangler/blob/master/docs/environments.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all instances of docs/environments.md need to be changed to docs/content/environments.md

@ashleymichal ashleymichal dismissed ashleygwilliams’s stale review September 13, 2019 16:42

missed a couple merge conflicts. need new review

Copy link
Contributor

@EverlastingBugstopper EverlastingBugstopper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! great work :)

@gabbifish gabbifish merged commit ab1d21c into master Sep 13, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat-kv-commands branch September 13, 2019 17:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
regression Something is broken, but works in previous releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFC - KV Commands / Queries
7 participants