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

Feat kv commands - #405

Merged
gabbifish merged 62 commits into
masterfrom
feat-kv-commands
Sep 13, 2019
Merged

Feat kv commands#405
gabbifish merged 62 commits into
masterfrom
feat-kv-commands

Conversation

@ashleymichal

@ashleymichal ashleymichal commented Aug 6, 2019

Copy link
Copy Markdown
Contributor

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

@ashleygwilliams ashleygwilliams left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread src/commands/kv/mod.rs Outdated
Comment thread src/commands/kv/mod.rs
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
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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)
Comment thread README.md Outdated
wrangler generate <name> <template> --type=["webpack", "javascript", "rust"]
```

<<<<<<< HEAD

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nooooo

Comment thread README.md Outdated
>>>>>>> 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
Copy Markdown
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

@ashleygwilliams
ashleygwilliams self-requested a review September 13, 2019 16:32
@ashleymichal
ashleymichal dismissed ashleygwilliams’s stale review September 13, 2019 16:42

missed a couple merge conflicts. need new review

@EverlastingBugstopper EverlastingBugstopper left a comment

Copy link
Copy Markdown
Contributor

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