diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-03-03 02:38:56 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-03-03 02:38:56 +0100 |
| commit | 2996ab249a6ae29b2644061c366f88c2157652f2 (patch) | |
| tree | cbfd0303eb093a55fec3b753f9c207e3cdda6f90 /2023/Go/Taskfile.yml | |
| parent | 9d6066cb934f94e3bf157afc9caeb74ca5307780 (diff) | |
feat: Add usage instructions
Diffstat (limited to '2023/Go/Taskfile.yml')
| -rw-r--r-- | 2023/Go/Taskfile.yml | 22 |
1 files changed, 14 insertions, 8 deletions
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 |
