From a906513d328a5f2cece050c5936571a185ce5384 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 16 Jul 2023 18:33:53 +0200 Subject: 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) --- tools/mod2spec.lua | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 tools/mod2spec.lua (limited to 'tools') diff --git a/tools/mod2spec.lua b/tools/mod2spec.lua new file mode 100755 index 00000000..74b3021b --- /dev/null +++ b/tools/mod2spec.lua @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu + +echo "spec/${1//./_}_spec.lua" -- cgit v1.2.3