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
|
name: Publish
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
tags:
|
||||||
|
- 'v*' # Only versioned tags
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|
|
@ -14,6 +14,7 @@ jobs:
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish latest build
|
name: Publish latest build
|
||||||
runs-on: ubuntu-latest
|
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)
|
usage(t.Stderr)
|
||||||
return nothing, nil
|
return nothing, nil
|
||||||
default:
|
default:
|
||||||
|
fmt.Fprintln(t.Stderr, "ERROR:", t.Args[1], "is not a valid command")
|
||||||
usage(t.Stderr)
|
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)
|
flags.SetOutput(t.Stderr)
|
||||||
|
|
Loading…
Reference in New Issue