diff options
Diffstat (limited to 'scripts/spot')
| -rwxr-xr-x | scripts/spot | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/spot b/scripts/spot new file mode 100755 index 0000000..8e6e4b5 --- /dev/null +++ b/scripts/spot @@ -0,0 +1,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 |
