aboutsummaryrefslogtreecommitdiff
path: root/justfile
blob: c8700b6e775e5824682da9caf2f82f42c0c8c004 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 }}

install path="~/.local/bin" *arguments="":
  install -Dm755 {{ name }} {{ path }}/{{ name }}

clean:
  rm -rf {{ name }}