Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
  • v0.1.0
  • v0.1.1
  • v0.1.2
  • v0.10.0
  • v0.10.1
  • v0.11.0
  • v0.12.0
  • v0.13.0
  • v0.13.1
  • v0.14.0
  • v0.15.0
  • v0.16.0
  • v0.17.0
  • v0.17.1
  • v0.18.0
  • v0.18.1
  • v0.19.0
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v0.6.0
  • v0.7.0
  • v0.8.0
  • v0.9.0
  • v0.9.1
  • v0.9.2
28 results

Target

Select target project
  • tozd/waf
1 result
Select Git revision
  • main
  • v0.1.0
  • v0.1.1
  • v0.1.2
  • v0.10.0
  • v0.10.1
  • v0.11.0
  • v0.12.0
  • v0.13.0
  • v0.13.1
  • v0.14.0
  • v0.15.0
  • v0.16.0
  • v0.17.0
  • v0.17.1
  • v0.18.0
  • v0.18.1
  • v0.19.0
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v0.6.0
  • v0.7.0
  • v0.8.0
  • v0.9.0
  • v0.9.1
  • v0.9.2
28 results
Show changes
Commits on Source (3)
......@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.12.0] - 2024-03-10
### Added
- `developmentModeHelp` Kong variable to customize help message for development flag.
## [0.11.0] - 2024-03-06
### Changed
......@@ -128,7 +134,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- First public release.
[unreleased]: https://gitlab.com/tozd/waf/-/compare/v0.11.0...main
[unreleased]: https://gitlab.com/tozd/waf/-/compare/v0.12.0...main
[0.12.0]: https://gitlab.com/tozd/waf/-/compare/v0.11.0...v0.12.0
[0.11.0]: https://gitlab.com/tozd/waf/-/compare/v0.10.1...v0.11.0
[0.10.1]: https://gitlab.com/tozd/waf/-/compare/v0.10.0...v0.10.1
[0.10.0]: https://gitlab.com/tozd/waf/-/compare/v0.9.2...v0.10.0
......
......@@ -60,6 +60,7 @@ func main() {
cli.Run(&app, kong.Vars{
"defaultProxyTo": "http://localhost:5173",
"defaultTLSCache": "letsencrypt",
"developmentModeHelp": " Proxy unknown requests.",
}, func(_ *kong.Context) errors.E {
// Routes come from a single source of truth, e.g., a file.
var routesConfig struct {
......
......@@ -33,6 +33,7 @@ func TestKong(t *testing.T) {
"defaultProxyTo": "http://localhost:5173",
"defaultTLSCache": "letsencrypt",
"defaultTitle": "test",
"developmentModeHelp": " Proxy unknown requests.",
},
)
require.NoError(t, err)
......@@ -44,7 +45,7 @@ func TestKong(t *testing.T) {
Flags:
-h, --help Show context-sensitive help.
-d, --development Run in development mode and proxy unknown requests.
-d, --development Run in development mode. Proxy unknown requests.
-P, --proxy-to=URL Base URL to proxy to in development mode. Default:
http://localhost:5173.
......
......@@ -79,8 +79,8 @@ type Server[SiteT hasSite] struct {
// Logger to be used by the server.
Logger zerolog.Logger `kong:"-" yaml:"-"`
// Run in development mode and proxy unknown requests.
Development bool `help:"Run in development mode and proxy unknown requests." short:"d" yaml:"development"`
// Run in development mode. By default proxy unknown requests.
Development bool `help:"Run in development mode.${developmentModeHelp}" short:"d" yaml:"development"`
// Base URL to proxy to in development mode.
ProxyTo string `default:"${defaultProxyTo}" help:"Base URL to proxy to in development mode. Default: ${defaultProxyTo}." placeholder:"URL" short:"P" yaml:"proxyTo"`
......