feat: open browser during serve with "--open"

This commit is contained in:
Antonio Curavalea committed 2023-04-30 23:13:46 +03:00
1 parent 9ce5fc508d
commit f6cd48c612
5 files changed
+71 -12

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ pub struct ConfigOptsServe {
#[clap(default_value_t = 8080)]
pub port: u16,
/// Open the app in the default browser [default: false]
#[clap(long)]
#[serde(default)]
pub open: bool,
/// Build a example [default: ""]
#[clap(long)]
pub example: Option<String>,