Any advice on how to get Mage Target data exported for usage in another Mage task? #368
-
@natefinch I'm interested in writing a mage helper package that could generate Jetbrains and VSCode task schema so there is a GUI driven option to invoke tasks (at least ones without parameters). Additionally, I used this with other task frameworks to generate a help page of documentation for the tasks. I'm assuming I can solve that one just with go documentation tooling, but figured I'd check as well. I found this a nice experience for new contributors.
Any pointers you could give me as I'm new to the source of mage, that could point me towards the discovered targets. Perhaps a new command |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I've been wanting to do this for forever, but never could get past the docs on integrating with VSCode. Probably the best way to do this is by adding a command to the compiled binary that we create from the magefiles to output the right info for VSCode or whatever, then you only compile and parse that one time.... basically the exact same thing we do for |
Beta Was this translation helpful? Give feedback.
I've been wanting to do this for forever, but never could get past the docs on integrating with VSCode.
Probably the best way to do this is by adding a command to the compiled binary that we create from the magefiles to output the right info for VSCode or whatever, then you only compile and parse that one time.... basically the exact same thing we do for
mage -l
, except instead of the CLI output, we output whatever vscode wants.