-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vweb: add an option to disable startup message #17645
Conversation
vlib/vweb/vweb.v
Outdated
@@ -387,6 +387,7 @@ pub struct RunParams { | |||
host string | |||
port int = 8080 | |||
family net.AddrFamily = .ip6 // use `family: .ip, host: 'localhost'` when you want it to bind only to 127.0.0.1 | |||
msg bool = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msg bool = true | |
startup_message bool = true |
Hmm... is it better to have What if you want to have a custom startup message? |
You can print an output manually :)
|
In V bools are usually named with
Verbose, but clear. |
indeed, my bad |
To be truly explicit (and even more verbose), it should be |
add `msg: false` to `vweb.RunParams` to disable `[VWeb] Running app on ...`
add
msg: false
tovweb.RunParams
to disable[VWeb] Running app on ...
refer to issue #17622
add an option
msg: false
to RunParams to disable the messagemsg
istrue
by defaultexample: