@loopress/cli 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +196 -143
  2. package/dist/commands/acf/push.js +2 -1
  3. package/dist/commands/composer/push.d.ts +1 -0
  4. package/dist/commands/composer/push.js +13 -0
  5. package/dist/commands/content/copy.d.ts +28 -0
  6. package/dist/commands/content/copy.js +97 -0
  7. package/dist/commands/doctor.d.ts +1 -0
  8. package/dist/commands/doctor.js +28 -1
  9. package/dist/commands/form/push.js +4 -1
  10. package/dist/commands/option/push.js +4 -2
  11. package/dist/commands/page/push.js +3 -2
  12. package/dist/commands/plugin/audit.js +41 -24
  13. package/dist/commands/promote.d.ts +1 -0
  14. package/dist/commands/promote.js +7 -3
  15. package/dist/commands/pull.d.ts +2 -1
  16. package/dist/commands/pull.js +24 -4
  17. package/dist/commands/push.d.ts +4 -2
  18. package/dist/commands/push.js +42 -17
  19. package/dist/commands/snippet/push.d.ts +1 -0
  20. package/dist/commands/snippet/push.js +24 -3
  21. package/dist/commands/theme/version/pull.js +6 -1
  22. package/dist/lib/base.d.ts +1 -0
  23. package/dist/lib/base.js +3 -0
  24. package/dist/lib/diff-command.d.ts +2 -0
  25. package/dist/lib/diff-command.js +24 -3
  26. package/dist/lib/load-snippets.js +4 -0
  27. package/dist/lib/php-files-command.d.ts +8 -0
  28. package/dist/lib/php-files-command.js +5 -0
  29. package/dist/lib/push-command.d.ts +4 -2
  30. package/dist/lib/push-command.js +65 -5
  31. package/dist/lib/resource-state.js +5 -5
  32. package/dist/lib/rollback-command.js +9 -2
  33. package/dist/lib/validate-local.js +9 -3
  34. package/dist/lib/wp-client.js +14 -1
  35. package/dist/types/snippet.d.ts +1 -0
  36. package/oclif.manifest.json +895 -693
  37. package/package.json +5 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopress/cli",
3
- "description": "CLI tool for syncing WordPress code snippets, plugins, and Composer dependencies via the REST API",
4
- "version": "0.30.0",
3
+ "description": "Build, review and ship WordPress, in one loop: pull, diff, push and roll back a site's code and config from git",
4
+ "version": "0.31.0",
5
5
  "author": "jean-smaug",
6
6
  "bin": {
7
7
  "loopress": "bin/run.js",
@@ -104,6 +104,9 @@
104
104
  "api": {
105
105
  "description": "Manage custom WordPress REST API routes"
106
106
  },
107
+ "content": {
108
+ "description": "Copy an environment's content (posts, pages, terms) into the local site, never the reverse"
109
+ },
107
110
  "cpt": {
108
111
  "description": "Manage custom post types declared in cpt/<slug>.json files, and list every post type on the site"
109
112
  },