aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..b1530db
--- /dev/null
+++ b/justfile
@@ -0,0 +1,14 @@
+name := "mugi"
+format_command := "~/go/bin/gofumpt -l -w ."
+
+default:
+ just --list
+
+fmt:
+ {{ format_command }}
+
+run *arguments="":
+ go run ./cmd/{{ name }} {{ arguments }}
+
+build:
+ go build -o {{ name }} ./cmd/{{ name }}