Various crap related to publishing

This commit is contained in:
Neale Pickett 2020-09-18 12:52:04 -06:00
parent 77b49d577e
commit 829b0b931a
5 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,8 @@
name: Publish
on:
release:
types: [published]
push:
tags:
- 'v*' # Only versioned tags
jobs:
publish:

View File

@ -14,6 +14,7 @@ jobs:
uses: actions/checkout@v1
- name: Test
run: go test ./...
publish:
name: Publish latest build
runs-on: ubuntu-latest

View File

@ -1,5 +0,0 @@
* Figure out how to log JSend short text in addition to HTTP code
* We've got logic in state.go and httpd.go that is neither httpd nor state specific.
Pull this into some other file that means "here are the brains of the server".
* Get Bo's answer pattern anchors working again
* Are we logging every transaction now?

View File

@ -68,8 +68,9 @@ func (t *T) ParseArgs() (Command, error) {
usage(t.Stderr)
return nothing, nil
default:
fmt.Fprintln(t.Stderr, "ERROR:", t.Args[1], "is not a valid command")
usage(t.Stderr)
return nothing, fmt.Errorf("%s is not a valid command", t.Args[1])
return nothing, fmt.Errorf("Invalid command")
}
flags.SetOutput(t.Stderr)