#!/usr/bin/env sh ( cat <&1 | sed -e 's/^usage: */\t/' -e 's/^ */\t/' echo ./mox helpall 2>&1 cat <doc.go gofmt -w doc.go ( cat <". Below are all examples included in mox. EOF for ex in $(./mox example); do echo '# Example '$ex echo ./mox example $ex | sed 's/^/\t/' echo done cat <config/doc.go gofmt -w config/doc.go