One of my upcoming tasks is to use command-chain for hooks in core20+.
I don't know much about hooks, but it's unclear to me from the documentation whether the mere presence of the hook file is sufficient, or if it also needs a corresponding entry in the snap[craft].yaml.
It _appears_ to me that a corresponding entry for snap[craft].yaml is required only if you have extra configuration parameters required for the hook (e.g. plugs). But I could be wrong..? Should snap.yaml have entries for _all_ configured/installed hooks?
One of my upcoming tasks is to use command-chain for hooks in core20+.
I don't know much about hooks, but it's unclear to me from the documentation whether the mere presence of the hook file is sufficient, or if it also needs a corresponding entry in the snap[craft].yaml.
It _appears_ to me that a corresponding entry for snap[craft].yaml is required only if you have extra configuration parameters required for the hook (e.g. plugs). But I could be wrong..? Should snap.yaml have entries for _all_ configured/ installed hooks?