Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Multi-language support for CLIs? #1134
Comments
Are you talking about if there is multi-language support for default help message in Cobra? |
Yes and I've already checked the source code, where strings are encapsulated in the UsageTemplate. The way to go seems to change the usage template with SetUsageTemplate. If I have enough time, would it be of interest to include a small example in the docs? |
This issue is being marked as stale due to a long period of inactivity |
@thomasgloe I'd be interested to see a PR for this if you wanted to take a shot at it. |
This issue is being marked as stale due to a long period of inactivity |
I would like to support multiple languages for my CLI using cobra. Implementation for commands is no problem, but is it correct that there is currently no support for the text output generated by cobra itself (e.g., "Usage", "Flags", "Use "mycmd [command] --help" for more information about a command.")?