Skip to content

How do I get the instance of the struct for the determined command? #356

Answered by alecthomas
peterlanoie asked this question in Q&A
Discussion options

You must be logged in to vote

First off, I appreciate that you've really tried to figure it out yourself. Thank you.

You can use kong.Context.Selected() for this. Here's an example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@peterlanoie
Comment options

Answer selected by peterlanoie
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