mox/vendor/github.com/mjl-/bstore/gendoc.sh

14 lines
234 B
Bash
Raw Normal View History

2023-01-30 16:27:06 +03:00
#!/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