ktsctl 1.0.0

CLI controler of kak-tree-sitter
1
2
3
4
5
6
7
8
9
10
11
12
use std::process::Command;

fn main() {
  let output = Command::new("git")
    .args(["rev-parse", "--short", "HEAD"])
    .output()
    .unwrap();

  let key = "GIT_HEAD";
  let value = String::from_utf8(output.stdout).unwrap();
  println!("cargo:rustc-env={key}={value}");
}