tools/mod2spec.lua
author Kim Alvefur <zash@zash.se>
Sun, 16 Jul 2023 18:33:53 +0200
changeset 13199 1a59a40c6443
permissions -rwxr-xr-x
tools: Add mod2spec.sh, turns util.example into spec/util_example_spec.lua Useful for opening a module and its tests at the same, can be awkward to auto-complete sometimes. sensible-editor util/example.lua $(./tools/mod2spec.sh util.example)

#!/bin/sh
set -eu

echo "spec/${1//./_}_spec.lua"