goforge new
Scaffolds a new GoForge application from github.com/mmycin/goforge-template.
Syntax
bash
goforge new [project-name] [module-path]Modes
- Interactive Wizard (0 args):
goforge newlaunches a 4-stephuhTUI wizard prompting for:- Project Name
- Go Module Path (validated by
^[a-zA-Z0-9._\-]+(/[a-zA-Z0-9._\-]+)+$) - Multi-select Databases (
sqlite,mysql,postgresql,sqlserver) - Confirm Git initialization
- Non-Interactive (2 args):
goforge new myapp github.com/acme/myappskips the wizard, defaults tosqliteonly, and initializes Git ifgitis onPATH. (Passing only 1 argument returns an error.)
What It Does
- Clones
https://github.com/mmycin/goforge-template(--branch main) into<project-name>/and removes.git/. - Replaces all occurrences of
"github.com/mmycin/goforge"with<module-path>. - Deletes unselected database drivers from
core/database/drivers/. - Runs
go mod tidy. - Runs
git init,git add .,git commit -m "chore: initial commit from GoForge"(if selected).
