This plugin basically runs the following commands:
$ buffalo new <app-name> -f; cd <app-name>; buffalo db drop -d; buffalo db create -d;
$ go get -u -v github.com/markbates/buffalo-trash
$ buffalo trash <app-name>
NOTE: You must NOT be in your project directory when you run this. You should be directly above it.
$ pwd
$GOPATH/src/github.com/markbates
$ ls -la | rg <app-name>
drwxr-xr-x 26 markbates staff 832 Apr 4 14:57 <app-name>
You can pass in all of the same options you can pass to buffalo new
.
$ buffalo trash <app-name> --db-type=mysql --api