Inspired by cargo-xtask and use xtask for your Go project scripts.
Create a xtask directory in your project root, and create a main.go file in the xtask directory.
go run xtask/main.go hellogo run xtask/main.go --help: list all available tasks, and output as following
Tasks:
setup - environment setup
hello - hello task
- Command Line - Awesome Go: https://awesome-go.com/command-line/