Fix generate README script

This commit is contained in:
Matthias Loibl 2020-01-08 11:39:44 +01:00
parent f1f1723381
commit 20988370cc
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA
2 changed files with 7 additions and 3 deletions

View file

@ -87,9 +87,11 @@ usage: jb [<flags>] <command> [<args> ...]
A jsonnet package manager
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-h, --help Show context-sensitive help (also try --help-long and
--help-man).
--version Show application version.
--jsonnetpkg-home="vendor"
The directory used to cache packages in.
The directory used to cache packages in.
Commands:
help [<command>...]

View file

@ -1,8 +1,10 @@
#!/usr/bin/env bash
BINARY_NAME=jb
GOOS=$(go env GOOS)
GOARCH=$(go env GOARCH)
HELP_FILE=$PWD/_output/help.txt
echo "$ $BINARY_NAME -h" > $HELP_FILE
PATH=$PATH:$PWD/_output/linux/amd64 $BINARY_NAME -h 2>> $HELP_FILE
$PWD/_output/$GOOS/$GOARCH/$BINARY_NAME 2>> $HELP_FILE
exit 0