$ tree .scaffold
.scaffold
├── command
│ ├── app
│ │ └── cmd
│ │ ├── {{name}}.go
│ │ └── {{name}}_test.go
│ └── meta.toml
└── usecase
├── app
│ └── usecase
│ ├── {{name}}.go
│ └── {{name}}_test.go
└── meta.toml
$ scaffold g command destroy
exist .
exist app/cmd
create app/cmd/destroy.go
create app/cmd/destroy_test.go
$ ls app/cmd/destroy*
app/cmd/destroy.go
app/cmd/destroy_test.go
toUpper
toLower
camelizer
pascalize
underscore
dasherize
Homebrew formula is available at izumin5210/homebrew-tools
$ brew install izumin5210/tools/scaffold
Prebuilt binary is available at Releases
# install dependencies
$ make deps
# build
$ make build
# run lint and test
$ make test
Licensed under MIT License.