Last active
August 29, 2015 14:25
-
-
Save emirotin/ee9737f846386ce7d564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.getPlainOptions = -> | |
# a helper method can be provided by the repo to flatten the options list if the CLI needs it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"options": [ | |
{ | |
"isGroup": true, | |
"message": "Named group", | |
"isCollapsible": true, | |
"isCollapsed": false, | |
"options": [ ] // an array of option definitions | |
}, | |
{ | |
"message": "An option", // an individual ungrouped option | |
... // the rest of the params | |
}, | |
{ | |
"isGroup": true, // anonymous group | |
"options": [ ] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment