https://github.com/spf13/cobra を使用します。
initialize
対象dirで、
| |
参考: https://github.com/spf13/cobra-cli/blob/main/README.md#initalizing-a-cobra-cli-application
新しくコマンドを追加するとき
| |
参考: https://github.com/spf13/cobra-cli/blob/main/README.md#add-commands-to-a-project