Skip to content

Any advice on how to get Mage Target data exported for usage in another Mage task? #368

Answered by natefinch
sheldonhull asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sheldonhull
Comment options

@sheldonhull
Comment options

Answer selected by sheldonhull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants