Is there a way to set hook using CLI? #8091
-
|
I came across a need to add a hook to a DDEV project for the first time today. I tend to build all of my projects identically, so I have a script that does all the setup for me. I wanted to add hooks using this script, but I can't see an option for adding hooks using Is there a way to add hooks using the I'm happy to open an issue with a feature request if this doesn't exist but I wanted to make sure I wasn't missing something first. In the meantime I can of course work around this by parsing the yaml file, updating it, and writing it back. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @GuySartorelli - I've always felt that hooks were too complex to package successfully into a command-line argument. I think people would struggle. But you can do things like this: |
Beta Was this translation helpful? Give feedback.
Hi @GuySartorelli -
I've always felt that hooks were too complex to package successfully into a command-line argument. I think people would struggle.
But you can do things like this: