Add wrapper script for master program

This commit is contained in:
2026-01-01 17:35:56 -06:00
parent 30463b60a5
commit 22dde8c213
4 changed files with 15 additions and 3 deletions

View File

@@ -16,9 +16,13 @@
- Should have sane defaults - Should have sane defaults
- Adding new arguments should be easy and obvious - Adding new arguments should be easy and obvious
- [ ] Add wrapper script to run main program (so that various assumptions related - [x] Add wrapper script to run master program (so that various assumptions related
to relative paths are safer) to relative paths are safer)
- [ ] move `master-bin` into a subdir like `master/cmd` or whatever is
idiomatic for golang programs; adapt `master` wrapper shell script
accordingly
- [ ] Add unit tests all over the place. - [ ] Add unit tests all over the place.
- ⚠️ Huge task - needs breakdown before starting - ⚠️ Huge task - needs breakdown before starting

2
master/.gitignore vendored
View File

@@ -1 +1 @@
master master-bin

View File

@@ -1,4 +1,4 @@
module philologue.net/diachron/master module philologue.net/diachron/master-bin
go 1.23.3 go 1.23.3

8
master/master Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$DIR"
./master-bin "$@"