{ "name": "bat", "version": "0.26.1", "summary": "bat: cat with syntax highlighting, line numbers and git changes in the margin (Rust)", "category": "tool", "license": "MIT OR Apache-2.0", "homepage": "https://github.com/sharkdp/bat", "source": { "url": "https://github.com/sharkdp/bat/archive/refs/tags/v0.26.1.tar.gz", "sha256": "4474de87e084953eefc1120cf905a79f72bbbf85091e30cf37c9214eafcaa9c9" }, "watch": {"kind": "github-release", "repo": "sharkdp/bat", "tag_regex": "^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "cargo", "lockfile": "Cargo.lock"}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": true, "check": "e=$(printf \"\\033\") && bin/bat --version | has '^bat 0.26.1' && t=$(mktemp -d) && printf 'fn main() {\\n println!(\"hi\");\\n}\\n' > \"$t/m.rs\" && bin/bat -pp \"$t/m.rs\" | cmp -s - \"$t/m.rs\" && bin/bat --color=always --paging=never --style=plain \"$t/m.rs\" > \"$t/c\" && has \"$e\\\\[\" < \"$t/c\" && sed \"s/$e\\\\[[0-9;]*m//g\" \"$t/c\" | cmp -s - \"$t/m.rs\" && env ${HOST:+BAT_PAGER=cat} bin/bat --list-languages | has '^Rust:' && mkdir \"$t/r\" && printf 'a\\nb\\nc\\n' > \"$t/r/f.txt\" && git -C \"$t/r\" init -q && git -C \"$t/r\" add f.txt && git -C \"$t/r\" -c user.name=t -c user.email=t@t commit -qm x && printf 'a\\nB\\nc\\nd\\n' > \"$t/r/f.txt\" && bin/bat --style=changes --color=never --decorations=always --paging=never \"$t/r/f.txt\" > \"$t/g\" && has '^~ B$' < \"$t/g\" && has '^+ d$' < \"$t/g\" && has '^ c$' < \"$t/g\" && check_static bin/bat && echo 'bat 0.26.1: Rust highlighted, the text unchanged under the colours, git changes in the margin'" }