flowscope-cli 0.3.0

Command-line interface for FlowScope SQL lineage analyzer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::{env, path::PathBuf};

fn main() {
    let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").expect("missing manifest dir"));
    let assets_dir = manifest_dir.join("embedded-app");

    println!("cargo:rerun-if-changed=embedded-app");

    if !assets_dir.join("index.html").exists() {
        panic!(
            "Missing FlowScope web assets at {}.\n\
             Run `just sync-cli-serve-assets` (builds app/dist and copies it\
             into crates/flowscope-cli/embedded-app) before enabling the\
             `serve` feature.",
            assets_dir.display()
        );
    }
}