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
I suggest adding an option to the TOML config file under the template section, such as exec, or perhaps splitting it into pre_exec and post_exec. This option would allow users to specify a shell command to be executed automatically.
The exec option would run the specified command after the template generation is complete.
Alternatively, the pre_exec option could run the command before generation, and the post_exec option could run it after generation.
I believe this approach would be more effective than implementing commands for each requested app individually. It would give users the flexibility to restart or perform any necessary actions before or after generating templates according to their needs.
I recall something similar might have been added before, possibly called hook, but it’s not mentioned in the documentation, so I’m unsure if it’s the same feature or something different.
I am talking about #83 (comment)
Anyway, Here’s an example using the exec approach:
The documentation is a little bit behind, that's why hook is probably missing. I'll have to update it.
I suggest adding an option to the TOML config file under the template section, such as exec, or perhaps splitting it into pre_exec and post_exec. This option would allow users to specify a shell command to be executed automatically.
I'll definitely add the post/pre part. I don't know whatever to rename hook to exec, but as it wasn't yet mentioned in the documentation I don't think it will cause anything.
I believe this approach would be more effective than implementing commands for each requested app individually. It would give users the flexibility to restart or perform any necessary actions before or after generating templates according to their needs.
I agree, it would also be good to add hooks to the example templates repo.
I suggest adding an option to the TOML config file under the template section, such as
exec
, or perhaps splitting it intopre_exec
andpost_exec
. This option would allow users to specify a shell command to be executed automatically.exec
option would run the specified command after the template generation is complete.pre_exec
option could run the command before generation, and thepost_exec
option could run it after generation.I believe this approach would be more effective than implementing commands for each requested app individually. It would give users the flexibility to restart or perform any necessary actions before or after generating templates according to their needs.
I recall something similar might have been added before, possibly called
hook
, but it’s not mentioned in the documentation, so I’m unsure if it’s the same feature or something different.I am talking about #83 (comment)
Anyway, Here’s an example using the
exec
approach:And here’s an example using the
{pre/post}_exec
approach:Originally posted by @Davenchy in #94 (comment)
The text was updated successfully, but these errors were encountered: