Skip to content

Ability to hide/show some options depending on platform #229

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

You must be logged in to vote

The simplest solution would be to use Go's OS build tags. Have a file for each OS containing an osSpecificFlags struct that you embed in your main CLI struct.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alecthomas
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
Converted from issue

This discussion was converted from issue #228 on October 27, 2021 12:06.