Skip to content

Commit

Permalink
Add godoc taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric authored and titpetric committed Jul 11, 2023
1 parent fdfe8e8 commit 6ea6f4f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .taskfiles/godoc/Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
version: "3"

tasks:
default:
desc: "Run godoc on all packages"
dir: ../..
vars:
package:
sh: go list .
packages:
sh: go list ./... | sed -e 's|{{.package}}|.|g'
silent: true
cmds:
- |
set -e;
{{- range $i, $package := .packages | splitLines -}}
go doc {{ $package }}
{{ end -}}

0 comments on commit 6ea6f4f

Please sign in to comment.