You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Plugins now only need to export commands object
- Remove metadata validation from listPlugins
- Simplify plugin detection to check for c8ctl-plugin.js/ts file
- Update all tests to remove metadata checks
- Update documentation and examples
This simplifies plugin development by removing unnecessary boilerplate.
Copy file name to clipboardExpand all lines: EXAMPLES.md
+1-7Lines changed: 1 addition & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -386,7 +386,7 @@ c8 list plugins
386
386
387
387
**Plugin Development:**
388
388
389
-
Plugins must be regular Node.js modules with a `c8ctl-plugin.js` or `c8ctl-plugin.ts` file in the root directory. The plugin name must be in the package.json metadata. The `c8ctl` runtime object provides environment information:
389
+
Plugins must be regular Node.js modules with a `c8ctl-plugin.js` or `c8ctl-plugin.ts` file in the root directory. The plugin file must export a `commands` object. The `c8ctl` runtime object provides environment information:
0 commit comments