{ "name": "tokei", "version": "15.0.0", "summary": "tokei: counts the lines of code, comments and blanks of a project by language, as a table or JSON (Rust)", "category": "tool", "license": "MIT OR Apache-2.0", "homepage": "https://github.com/XAMPPRocky/tokei", "source": { "url": "https://github.com/XAMPPRocky/tokei/archive/refs/tags/v15.0.0.tar.gz", "sha256": "966da7b9a81ac6cb777b9f159f4c02e5b83a8b8bd30ebf5991007839926b600c" }, "watch": {"kind": "github-release", "repo": "XAMPPRocky/tokei", "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": "bin/tokei --version | has '^tokei 15.0.0' && t=$(mktemp -d) && mkdir \"$t/p\" && printf '#include \\n\\n/* a comment */\\nint main(void) {\\n // one\\n return 0;\\n}\\n' > \"$t/p/a.c\" && printf '#!/bin/sh\\n# comment\\necho one\\n\\necho two\\n' > \"$t/p/b.sh\" && printf 'fn main() {\\n println!(\"x\");\\n}\\n' > \"$t/p/c.rs\" && bin/tokei -o json \"$t/p\" > \"$t/j\" && [ \"$(python3 -c 'import json, sys; d = json.load(open(sys.argv[1])); print(\" \".join(\"%s:%d,%d,%d\" % (k, d[k][\"code\"], d[k][\"comments\"], d[k][\"blanks\"]) for k in sorted(d)))' \"$t/j\")\" = 'C:4,2,1 Rust:3,0,0 Shell:2,2,1 Total:9,4,2' ] && bin/tokei \"$t/p\" | has 'Total *3 *15 *9 *4 *2' && echo 'tokei 15.0.0: a project of a C, a shell and a Rust file counted by language (code, comments, blanks), as JSON and as a table'" }