1//go:build mango
2// +build mango
3
4package main
5
6import (
7 "flag"
8 "fmt"
9 "os"
10
11 "github.com/muesli/mango"
12 "github.com/muesli/mango/mflag"
13 "github.com/muesli/roff"
14)
15
16func init() {
17 manPage := mango.NewManPage(1, "soft", "A self-hostable Git server for the command line").
18 WithLongDescription("Soft Serve is a self-hostable Git server for the command line.").
19 WithSection("Copyright", "(C) 2021-2022 Charmbracelet, Inc.\n"+
20 "Released under MIT license.")
21
22 flag.VisitAll(mflag.FlagVisitor(manPage))
23 fmt.Println(manPage.Build(roff.NewDocument()))
24 os.Exit(0)
25}