Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dashboard/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ chrono = "0.4"
console_error_panic_hook = "0.1"
wasm-rs-dbg = "0.1"
common = { path = "../common"}
clap = { version = "3.2", features = ["derive"] }
10 changes: 10 additions & 0 deletions dashboard/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::ops::Range;

use chrono::{Duration, NaiveDate};
use clap::Parser;
use plotters::prelude::*;
use plotters_canvas::CanvasBackend;
use wasm_rs_dbg::dbg;
Expand All @@ -10,6 +11,13 @@ use yew::prelude::*;

use common::TestsuiteResult;

#[derive(Parser, Debug)]
#[clap(author, version)]
struct Args {
#[clap(short, long, default_value = "http://127.0.0.1")]
api_url: String,
}

#[derive(Debug, Clone)]
enum Error {
CacheAPI,
Expand Down Expand Up @@ -272,6 +280,8 @@ fn get_limits(testsuites: &[TestsuiteResult]) -> Range<u64> {

fn main() {
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
let args = Args::parse();
dbg!(args);

yew::start_app::<CacheModel>();
}