diff cmd/sievemgr/main.go @ 10:44c07eb8ef08

Add man subcommand to display the user manual Generate the manual from the documentation in godoc format.
author Guido Berhoerster <guido+sievemgr@berhoerster.name>
date Thu, 03 Dec 2020 13:52:28 +0100
parents 8caacf702c0d
children fc5e6970a0d5
line wrap: on
line diff
--- a/cmd/sievemgr/main.go	Sat Nov 28 23:44:45 2020 +0100
+++ b/cmd/sievemgr/main.go	Thu Dec 03 13:52:28 2020 +0100
@@ -19,6 +19,8 @@
 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
+//go:generate go run gendocstr.go . code.guido-berhoerster.org/go/sievemgr docText docstr.go
+
 package main
 
 import (
@@ -71,6 +73,7 @@
 	cmdCheckSpace,
 	cmdRename,
 	cmdEdit,
+	cmdMan,
 }
 
 func usage() {