vertigo_cli/commons/models.rs
1use clap::Args;
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Deserialize, Debug)]
5pub struct IndexModel {
6 pub run_js: String,
7 pub wasm: String,
8}
9
10#[derive(Args, Debug, Clone)]
11pub struct CommonOpts {
12 /// Directory with wasm_run.js and compiled .wasm file. Should be the same during build and serve.
13 #[arg(long, default_value_t = {"./build".to_string()})]
14 pub dest_dir: String,
15
16 /// Whether to use local time in logging.
17 ///
18 /// This defaults to true for `watch` command and to false for all other commands.
19 #[arg(long, hide_short_help(true))]
20 pub log_local_time: Option<bool>,
21}