Comments (3)
Oo, messy. It is throughout wp-cli itself. Unless one wants to break wp-cli users of --format (a larger set of users than restful), then I recommend a generic approach for conflicting parameters be used.
Perhaps there should be an auto generated blacklist for arguments of wp-cli, restful, and other packages.
Then this blacklist can be compared against the incoming set of arguments from REST endpoints.
Then change those that intersect.
One change could be to prepend title from the argument's schema and a colon or period. I prefer a colon. For example, in the conflict between the internal --format argument and the core WP rest post argument "format", the latter could be changed to:
- --post:format
- --post.format
Example:
wp rest post generate --format=progress --post:format=quote --title="My Title" --content="http://mysite.com"
from restful.
Oo, messy. It is throughout wp-cli itself. Unless one wants to break wp-cli users of --format (a larger set of users than restful), then I recommend a generic approach for conflicting parameters be used.
I agree with this more generic approach idea, although I'm unsure of the specific implementation.
Somewhat related wp-cli/wp-cli#3128
from restful.
Closing for now, as this project isn't under active development.
from restful.
Related Issues (20)
- Emits database errors during `core install` for Bedrock installs HOT 1
- How to load restful in windows HOT 1
- Restful API no more work using http HOT 8
- Cannot fetch a field property such as content.rendered HOT 2
- Travis build is broken for PHP 5.3 HOT 1
- Specifying an alias doesn't work for `http: domain` HOT 1
- Still maintained? HOT 4
- strlen(): Passing null to parameter #1 ($string) of type string is deprecated
- Make the package installable through composer HOT 1
- Retrieving REST API callback functions HOT 3
- PHP Warning for missing field. HOT 1
- Add support for application passwords HOT 1
- Allow for custom authentication mechanisms HOT 1
- Package install command fails for restful under certain reproducible circumstances HOT 4
- Extend documentation with more examples, http use HOT 8
- wrong schema loaded for commands causes fault HOT 5
- travis is failing in before_script stage HOT 4
- Strongly consider the implications of using HTTP status headers as return codes. HOT 8
- missing license information HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restful.