v0.9.14
-
We now attempt some recovery behavior if a Kobweb project cannot be found.
- If the user runs
kobweb run
,kobweb stop
, orkobweb export
in the wrong directory, we now look in nested folders if it's there instead. - This should help new users who run
kobweb run
in their root project and not thesite
subfolder, for example. - The search is limited to a depth of 2, so running kobweb in a totally incorrect place shouldn't cause major hanging issues.
- If the user runs
-
kobweb create ...
now attempts to find a close match if no exact match is found.- e.g.
kobweb create clock
is invalid, because the project is calledexamples/clock
. As before, we show the user a list of templates to choose from in this case; but now, the cursor will point to theexamples/clock
line automatically so the user just has to press enter.
- e.g.
-
Fixed an issue where externally stopping a Kobweb server would cause kobweb to hang.
- e.g. In terminal 1, run
kobweb run
. Once running, in terminal 2, runkobweb stop
.
- e.g. In terminal 1, run
-
Yes/no questions now use a simpler
[Yes] No
widget instead of asking the user to type "Yes" or "No". -
kobweb conf
now uses general yaml parsing and not reflection, for a simpler, more future-proof approach.- Plus, reflection is ugly!
- As a bonus, the command now also lists all possible queries if the user doesn't specify any query at all, or if they specify an invalid one.
-
kobweb help
now works the same askobweb --help
Internal
-
Kobweb Templates now support a
maximumVersion
value in addition to aminimumVersion
.- In the future, this will allow us to fork templates over and add new features to them without breaking older users, who can continue to fetch the older versions in their case.
-
Removed the long deprecated
--mode
parameter. Users should be using--notty
instead. -
Added
not
to the list of freemarker methods available in templates.- This will allow us to clean up the empty template considerably after enough time passes that users can upgrade.
-
Added an informative error message instead of crashing if the user's
.kobweb
folder is somehow missing aconf.yaml
file.
Full Changelog: v0.9.13...v0.9.14