diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-14 00:16:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-14 00:16:49 +0300 |
| commit | 0098488f4c869c257ae30fe7dea9a5d8fce9894b (patch) | |
| tree | 1d50c91f331676b98a7a0b67b83c3b8ab91f1a42 /Taskfile.yaml | |
| parent | 5e02ad3bcfb643c44866f65d763d266b1d257e20 (diff) | |
feat(lsp): scaffold barebones LSP server with contextual completion; add Taskfile and AGENTS.md; enable -log context logging
Diffstat (limited to 'Taskfile.yaml')
| -rw-r--r-- | Taskfile.yaml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml new file mode 100644 index 0000000..66e6796 --- /dev/null +++ b/Taskfile.yaml @@ -0,0 +1,44 @@ +version: '3' + +vars: + BIN_NAME: hexai + BIN_DIR: bin + BIN_PATH: "{{.BIN_DIR}}/{{.BIN_NAME}}" + +tasks: + build: + desc: Build the hexai LSP binary to ./bin + cmds: + - mkdir -p {{.BIN_DIR}} .gocache .gomodcache + - CGO_ENABLED=0 GOCACHE=$(pwd)/.gocache GOMODCACHE=$(pwd)/.gomodcache go build -o {{.BIN_PATH}} ./cmd/hexai + + install: + desc: Install the hexai LSP binary into your Go bin directory + cmds: + - mkdir -p .gocache .gomodcache + - CGO_ENABLED=0 GOCACHE=$(pwd)/.gocache GOMODCACHE=$(pwd)/.gomodcache go install ./cmd/hexai + - | + DEST="${GOBIN:-$(go env GOBIN)}" + if [ -z "$DEST" ]; then DEST="$(go env GOPATH)/bin"; fi + if [ -z "$DEST" ]; then DEST="$HOME/.local/bin"; fi + echo "Installed to: $DEST (ensure it is on your PATH)" + + install-local: + desc: Copy the built binary to ~/.local/bin (no go install) + deps: [build] + cmds: + - mkdir -p "$HOME/.local/bin" + - cp -f {{.BIN_PATH}} "$HOME/.local/bin/{{.BIN_NAME}}" + - echo "Installed to: $HOME/.local/bin (ensure it is on your PATH)" + + run: + desc: Build and run the server on stdio + deps: [build] + cmds: + - ./{{.BIN_PATH}} -stdio + + clean: + desc: Remove build artifacts and local Go caches + cmds: + - rm -rf {{.BIN_DIR}} .gocache .gomodcache + |
