Hi people, we have json file that has information ...
# clikt
e
Hi people, we have json file that has information about teams ownership to gradle module. How would you define with clikt next command line - it has three modes - find module by team name, find team name by module name, validate all modules have at least one team name assigned?
It looks like
enum
with modes but two of them require string input as team name or module name
a
You could use a subcommand for each mode, with two having required arguments.
e
Super thank you!
Finally migrated to subcommands solution and it is so nice usage for consumer
thank you!
❤️ 1