add --man flag for man page generation

add Taskfile.man.yml
include it in the main Taskfile

add man flag to Flags section in README
This commit is contained in:
2026-04-25 16:21:40 +01:00
parent b50f139366
commit 705190af26
8 changed files with 90 additions and 11 deletions

17
Taskfile.man.yml Normal file
View File

@@ -0,0 +1,17 @@
version: '3'
tasks:
default:
desc: View man page
cmds:
- task: view
view:
desc: View man page
cmds:
- go run ./cmd/{{.PROGRAM}} --man | man -l -
generate:
desc: Generate man page
cmds:
- go run ./cmd/{{.PROGRAM}} --man > {{.PROGRAM}}.1