From 46d032cd21b0e8e2c94a32333d3805ec76980cca Mon Sep 17 00:00:00 2001 From: ewy Date: Mon, 1 Jun 2026 18:47:44 +0200 Subject: add man(1) generation --- man/man_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 man/man_test.go (limited to 'man/man_test.go') diff --git a/man/man_test.go b/man/man_test.go new file mode 100644 index 0000000..4b48c0f --- /dev/null +++ b/man/man_test.go @@ -0,0 +1,18 @@ +//go:build test + +package main + +import ( + "github.com/spf13/pflag" + "github.com/stretchr/testify/assert" + "path/filepath" + "testing" +) + +func TestMan(t *testing.T) { + d := t.TempDir() + err := pflag.Set(manFlagName, d) + assert.NoError(t, err) + assert.NotPanics(t, main) + assert.FileExists(t, filepath.Join(d, "pik.1.man")) +} -- cgit v1.3.1