mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
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)
This commit is contained in:
parent
d21e26882c
commit
a906513d32
1 changed files with 4 additions and 0 deletions
4
tools/mod2spec.lua
Executable file
4
tools/mod2spec.lua
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
echo "spec/${1//./_}_spec.lua"
|
Loading…
Add table
Add a link
Reference in a new issue