Export Commands and Parameters
This is only loosely related to Sapphire, but I was wondering if there is an easy way to export a CSV or something that has the commands and parameters in it for documentation purposes. I have roughly a hundred commands and have never gotten around to doing any documentation, but I’m finding the need to write docs for them now. Is there an easy way to do this or does anyone have any ideas on how to best do it?
Solution:Jump to solution
Use
this.container.stores.get('commands')
to get a Map<string, Command>
which can be turned into a Command[]
then use a JSON to CSV converter library (or parse it out yourself)2 Replies
Solution
Use
this.container.stores.get('commands')
to get a Map<string, Command>
which can be turned into a Command[]
then use a JSON to CSV converter library (or parse it out yourself)Thank you!