summaryrefslogtreecommitdiffstats
path: root/scripts/spot
blob: 8e6e4b5d606e9b5d0fa345745718a7cbe2e3968b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env scriptisto

// scriptisto-begin
// script_src: src/main.rs
// build_cmd: cargo build --release && strip ./target/release/script
// target_bin: ./target/release/script
// files:
//  - path: Cargo.toml
//    content: |
//     package = { name = "script", version = "0.1.0", edition = "2018"}
//     [dependencies]
//     scripttools = { path = "/home/jokler/rust/scripttools" }
//     cmd_lib = "*"
// scriptisto-end

use cmd_lib::*;
use scripttools::*;

fn main() {
    if let Err(e) = run() {
        eprintln!("{}", e);
    }
}

fn run() -> Result<()> {
    Ok(run_cmd!("current-term --class spt -e spt")?)
}

// vim: filetype=rust