From 2996ab249a6ae29b2644061c366f88c2157652f2 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 3 Mar 2025 02:38:56 +0100 Subject: feat: Add usage instructions --- 2023/Go/Taskfile.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to '2023/Go/Taskfile.yml') diff --git a/2023/Go/Taskfile.yml b/2023/Go/Taskfile.yml index a89c4c3..a07c24c 100644 --- a/2023/Go/Taskfile.yml +++ b/2023/Go/Taskfile.yml @@ -1,17 +1,23 @@ # https://taskfile.dev -version: '3' - +version: "3" tasks: - default: - desc: "Prints this message" + desc: Prints this message cmds: - cmd: task --list-all - + build: + cmds: + - cmd: go build -o=out/Advent_of_Code_2023 main.go + run: + cmds: + - cmd: go run main.go {{.CLI_ARGS}} + test: + cmds: + - cmd: go test ./... test:coverage: desc: Runs tests and produce coverage report cmds: - - mkdir --parents out - - go test -coverprofile=out/coverage.out ./... - - go tool cover -html=out/coverage.out + - cmd: mkdir --parents out + - cmd: go test -coverprofile=out/coverage.out ./... + - cmd: go tool cover -html=out/coverage.out -- cgit v1.2.3