mirror of https://github.com/dirtbags/moth.git
Various crap related to publishing
This commit is contained in:
parent
77b49d577e
commit
829b0b931a
|
@ -1,7 +1,8 @@
|
|||
name: Publish
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
tags:
|
||||
- 'v*' # Only versioned tags
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
|
|
@ -14,6 +14,7 @@ jobs:
|
|||
uses: actions/checkout@v1
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
|
||||
publish:
|
||||
name: Publish latest build
|
||||
runs-on: ubuntu-latest
|
||||
|
|
5
TODO.md
5
TODO.md
|
@ -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?
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue