DEV Community

Discussion on: Learning Go by examples: part 3 - Create a CLI app in Go

Collapse
 
dimitri_acosta profile image
Dimitri Acosta

This is pretty cool but I have a question here, how do I pass in arguments when using the task command? I know I can use the executable file in the bin directory instead but how do I do the same thing with the run task?

If that is not possible, then what is the reason for that task?

Collapse
 
aurelievache profile image
Aurélie Vache

Hi, yes it's possible to define variable for example: taskfile.dev/#/usage?id=dynamic-va...

Collapse
 
dimitri_acosta profile image
Dimitri Acosta

Thank you, I guess I should have looked at the documentation first, my bad.