Home

git-age @main - refs - log -
https://git.jolheiser.com/git-age.git
git-crypt, but with age
Raw - man.go
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//go:build man

package main

import (
	"os"

	"go.jolheiser.com/git-age/cmd"
)

func main() {
	fi, err := os.Create("git-age.1")
	if err != nil {
		panic(err)
	}
	defer fi.Close()

	app := cmd.New()
	man, err := app.ToMan()
	if err != nil {
		panic(err)
	}

	fi.WriteString(man)
}