mox/vendor/github.com/mjl-/bstore/gendoc.sh
Mechiel Lukkien cb229cb6cf
mox!
2023-01-30 14:27:06 +01:00

13 lines
234 B
Bash

#!/bin/sh
(
cat <<EOF
/*
Command bstore provides commands for inspecting a bstore database.
Subcommands:
EOF
go run cmd/bstore/bstore.go 2>&1 | sed 's/^/ /' | grep -v 'exit status'
echo '*/'
echo 'package main'
) >cmd/bstore/doc.go