Shared Functions - How to handle? #622
Unanswered
ProfessorManhattan
asked this question in
Q&A
Replies: 1 comment
-
You're always better to handle more complicated commands in separate scripts/files. If you really want to incorporate all the code related to those functions into Taskfile you could have a dep task that generates those scripts for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, so I love this program. Awesome job. It seems like its growing in stars rapidly.
I am wondering if there is a way we can share functions between tasks. I'm trying to avoid having functions in multiple tasks. Here's what I mean:
How are people handling scenarios like this where the same function is called in two different tasks? It might make sense to allow to set the context somewhere for shared functions if there is not already a way.
Beta Was this translation helpful? Give feedback.
All reactions