How to create CLI programs with multiple commands, flags and subcommands, and how to do it fast and simply? google/subcommands makes it a breeze. Let us see how. The problem scopeFirst, let us agree on the topics covered here. Any Go program is — at least in concept — run from a command line, be it an actual shell command line or some automation tool, using the execve(2) system call. To define the
![CLI commands with google/subcommands](https://cdn-ak-scissors.b.st-hatena.com/image/square/342e5e58f4bf881d5857dd278fd36dfcd55c40e3/height=288;version=1;width=512/https%3A%2F%2Fosinet.fr%2Fgo%2Fen%2Farticles%2Fcli-google-subcommands%2Fcover.jpeg)