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}