Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add components from commandline #2

Open
jacklowrie opened this issue Aug 2, 2020 · 0 comments
Open

Add components from commandline #2

jacklowrie opened this issue Aug 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jacklowrie
Copy link
Owner

jacklowrie commented Aug 2, 2020

Description

The following is from the original readme. Can be used for specs & documentation when the time comes.

Note: This might end up being its own project, but a simple version can be done with npm processes.

Gizmo CLI

Gizmo comes with a wp-cli extension that is inspired by Laravel's artisan cli. the root command is wp gizmo. These commands are not included in your bundled plugin by default. with wp-gizmo-cli, you can rapidly scaffold new plugin components (wp gizmo make:compoment), tests (wp gizmo make:test --component=NAME), and even cli commands (wp gizmo make:cli) for use in your dev environment

Including CLI commands in your plugin

WP Gizmo's cli commands can be extended and included in your bundled plugin. You can create new cli commands for your plugin from the command line: wp gizmo make:cli --bundled=TRUE. If you choose to extend gizmo's wpcli commands with additional commands, add the filepath to your config.json. During the bundle process, the root command will be rewritten to the name of your plugin (so in your dev environment, you run wp gizmo refresh-opengraph-metadata, but in your bundled plugin called 1440, you'd run wp 1440 refresh-opengraph-metadata).

@jacklowrie jacklowrie added the enhancement New feature or request label Aug 2, 2020
@jacklowrie jacklowrie self-assigned this Aug 2, 2020
@jacklowrie jacklowrie added this to the v0.7 Basic Command Line milestone Aug 2, 2020
@jacklowrie jacklowrie removed their assignment Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant