All notable changes to this project will be documented in this file.
Remove the RWMutex from the resources.go template.
- Use the request context to keep resource caching local to the handler goroutine.
Bugfix to correct slice-abuse in generating entries from the route map for the routes.go template.
Tighten up some code and make page resources optional
- Added
--no-resources
flag to the page generation command
- Trim unused resources and handlers in some of the page starter templates
- Make site main file generally easier to read
- Env singleton instance is scopes to the main function
- Initializing Env resources in main func allows the use of defer for teardown
Stamp out an initial release build with a version number.
- Add the
good version
command to print the current version of the CLI
Add interactive confirmation to page command and improve reporting of CLI errors to the user.
good page
command will now trigger a wizard in terminal mode, this might break scripts- use the
-y
flag to prevent blocking on user input
- use the
- All commands attempt to explain any expected CLI errors to the user
- Unexpected errors continue to cause a panic and spew a stack trace
- CLI commands that read interactive input now have a 30 second time limit
- Recursive
go list ./...
, searching for a go package when go.mod is not found cause CLI to hang- Use a 5 second timeout context when calling out to the Go tools.
Rename scaffold sub-package to "site" and add a new starter template with a functioning sign-in and sign-up user flow (mock in-memory database).
- Renamed scaffold service package to site, since that is more appropriate
- Added new starter template
:bootstrap5/login
- Add an
env.HTTPS
flag to the site Env, because it is useful - The server setup assumes that HTTPS is enabled in non-dev mode
- Added README.md.tmpl to default good starter output
- Add README to the
:intro
starter template- same info as the intro index.html file
- Upgrade version of Treetop to v0.4.1 to get a patch fix for
Vary
header handling
Minor improvements, main fix is to allow pages to be added even when a scaffold site package has a compile error.
- Add panic recovery to page Env binding helper
- Good Page command will still work when the target scaffold has a compile error.
- Minor improvements to scaffold markdown docs/ROUTEMAP.md guide
- Add a function docstring when generating the routes.go file
Add Bootstrap v5 built-in starter templates and improve documentation
- Add Bootstrap v5 starter templates: layout and examples
- root static files are listed during server setup
- Building GUIs, and starter template sections on README
- page/keyed.go file to scaffold page package
- Rename
--starter-template
to--starter
- Scaffold creates a single intro page with instructions on getting started
- Reorg scaffold page templates between default and named
First major milestone for enhancements from the POC functionality.
--starter-template
for the page scaffold commandgood starter
command to help create a customized page code template- README files for the site and pages to serve as documentation
- Integration tests in the form of a 'baseline' file diff
- Routes command now generates missing handlers and templates
- Scaffold command will no longer create a number of pages
- Scaffold creates a single intro page with instructions on getting started
- The default starter page has been extracted into folder, embedded with the good binary
- Incomplete and buggy processing of routemap for refcount
- Write changes back out to routemap.toml
First fully functioning version of the good commands capable of embedding a web-GUI, adding pages and updating/generating routes.
good
CLI with the following commands:scaffold
,page
,pages
androutes