A new plugin for the Community (that I've dreamed to have) #306
Replies: 5 comments 1 reply
-
|
With pretty jobs of @sebastianfeldmann on version 5.28.4, I should be able to release officially my plugin in next 48 hours. No more need to patch CaptainHook ;-) |
Beta Was this translation helpful? Give feedback.
-
|
The repository where you can find my plugin : source code, documentation, examples is now public In waiting an official release on Composer, you can visit the project at https://github.com/llaville/captainhook-bin-plugin |
Beta Was this translation helpful? Give feedback.
-
|
For better readability of the online documentation, please visit https://llaville.github.io/captainhook-bin-plugin/1.x/ |
Beta Was this translation helpful? Give feedback.
-
|
For users that prefer using PHAR distribution installed by |
Beta Was this translation helpful? Give feedback.
-
|
PHAR distribution tools installed by Phive is now supported ! Official Composer Package of my plugin will be release soon. From current source code available, here are changes applied :
The Dependency Manager used ( For example with vendor/bin/captainhook hook:pre-commit -c captainhook.json.mago-sample --verboseWe could see And with new upcoming Phive support For example with vendor/bin/captainhook hook:pre-commit -c captainhook.json.phpcs-sample --verboseWe could see Here is a teaser screenshot
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
Is it not annoying to see the execution of an action failed, simply because you forgot to install the package ?
For example :
Presentation
I'm proud to announce that I'll publish very soon now my first plugin for CaptainHook.
It's main goal is to execute vendor dependency binary action only if their package is installed.
Example when package not installed
Example when package is installed
For attentive users, you've probably noticed that, even if the terminal support colors, actions run but not render their output with colorized copy. And even if action has auto-detection like https://github.com/carthage-software/mago
This is the reason and other goal of this plugin : make it configurable to be able to run action as they are supposed to be without to hard-coded as much as possible the
actionline.More details will come when documentation will be finished to write and source code officially opened.
The project is still private, under polishing state at URL https://github.com/llaville/captainhook-bin-plugin
Warnings
I've applied on core CaptainHook code some modifications :
For easy reading only :
captainhook.jsonconfig file human-readable with longactionline contents #302And a mandatory
CONFIGplaceholder #304To do so, I've used the awesome https://github.com/cweagans/composer-patches Composer Plugin
Caution
I've noticed big issues with major version 2.0 of this plugin, so stay on version 1.7 (latest stable available, that accept local patches)
Beta Was this translation helpful? Give feedback.
All reactions