working commit

This commit is contained in:
2026-05-26 17:11:13 +02:00
commit 2e59f88d76
103 changed files with 18276 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
package main
import (
"fmt"
"os"
"time"
"github.com/spf13/cobra/doc"
"mproxy/cmd/mproxyd/starter"
)
func run() error {
var err error
os.Args[0] = "mproxyd"
util := starter.NewStarter()
if err != nil {
return err
}
cmd := util.GetCmd()
now := time.Now()
header := &doc.GenManHeader{
Title: "mproxyd",
Section: "8",
Manual: "User commands",
Source: "mproxyd command",
Date: &now,
}
opts := doc.GenManTreeOptions{
Header: header,
Path: "./",
CommandSeparator: "-",
}
err = doc.GenManTreeFromOpts(cmd, opts)
if err != nil {
return err
}
return err
}
func main() {
err := run()
if err != nil {
fmt.Printf("err: %v\n", err)
}
}