While, I am always used now the hook:pre-push CapN command to test my hook before to use it in live condition.
Sometimes I forgot it, and I want be to have the same results when I run the following command
git push origin < remote-branch> --dry-run -v
Note
Usage of --dry-run flag here is for test purpose only. The main important condition, is the use of -v (verbose) flag.
Important
The verbosity setting into captainhook.json config file is defined to normal
Current Output
Expected Output
This result is what I got, if I run following command :
vendor/bin/captainhook hook:pre-push -v
Important
The -v flag is provided while the verbosity is still defined to normal in CaptainHook config file.
Actually, if I want the expected result in LIVE mode (git push), I MUST set the verbosity setting to verbose into captainhook.json.
My request is to have the same behavior (LIVE mode and hook:pre-push command) without to change the verbosity setting in CaptainHook config file.
While, I am always used now the
hook:pre-pushCapN command to test my hook before to use it in live condition.Sometimes I forgot it, and I want be to have the same results when I run the following command
Note
Usage of
--dry-runflag here is for test purpose only. The main important condition, is the use of-v(verbose) flag.Important
The
verbositysetting intocaptainhook.jsonconfig file is defined tonormalCurrent Output
Expected Output
This result is what I got, if I run following command :
Important
The
-vflag is provided while theverbosityis still defined tonormalin CaptainHook config file.Actually, if I want the expected result in LIVE mode (git push), I MUST set the
verbositysetting toverboseintocaptainhook.json.My request is to have the same behavior (LIVE mode and
hook:pre-pushcommand) without to change theverbositysetting in CaptainHook config file.