Fredrik Wallgren
b0d37d1fb2
Add default values to usage
Check if the value isn't it's zero value and if not add a default value
to the usage text.
10 years ago
Alex Flint
5db9c77fa3
Merge pull request #13 from walle/show_builtin
Add built ins to options in help output
10 years ago
Will Norris
47f2593dad
add Russ Cox as contributor
10 years ago
Russ Cox
603713f3fd
github: document and add support for all IssueEvent types
10 years ago
Carl Jackson
bf843a174a
Merge pull request #171 from stellar/allow-streaming-tests
Add `flushWriter` to `mutil.WrapWriter()`
10 years ago
Scott Fleckenstein
23a88f8df0
Add `flushWriter` to `mutil.WrapWriter()`
This allows httptest.ResponseRecorder to be wrapped and still maintain
its Flusher compatibility
10 years ago
Fredrik Wallgren
330a0da571
Add built ins to options in help output
Adds help to the options in help output with an easy way to add more
built ins.
10 years ago
Carl Jackson
09c4160eb0
travis: test 1.5 specifically
10 years ago
Carl Jackson
3bdac6dcc6
Fix travis
This only breaks in go tip.
10 years ago
Alex Flint
785fa3f8c9
Merge pull request #16 from walle/move_doc
Move package documentation to doc.go
10 years ago
Carl Jackson
be915f805d
pattern: export Raw for retrieving original input
This is in addition to the String method, which is oriented more towards
human debugging.
10 years ago
Alex Flint
c4704194de
Merge pull request #14 from walle/usage_on_stderr_bug
Fix bug with error not being written to stderr
10 years ago
Alex Flint
0f9dfa27d1
Merge pull request #15 from walle/fix_lint_warning
Fix lint warning
10 years ago
Fredrik Wallgren
ab43eae565
Move package documentation to doc.go
10 years ago
Fredrik Wallgren
d6a447ed7c
Fix lint warning
10 years ago
Matt Silverlock
9c068cf16d
Merge pull request #134 from shurcooL/travis-CI-more-thorough
[ci] Perform gofmt, go vet checks; use race detector during tests.
10 years ago
Fredrik Wallgren
df17f4df45
Fix bug with error not being written to stderr
Only the usage message was written to stderr, the error was written with
the standard fmt.Println.
10 years ago
Alex Flint
a49bba8533
Merge pull request #10 from walle/fail_to_stderr
Write usage message to stderr on error
10 years ago
Alex Flint
a6c77a413a
Merge pull request #7 from brettlangdon/dev/trailing.whitespace.sqwished
Remove excess trailing whitespace from Usage generation
10 years ago
Fredrik Wallgren
935b2a1bd5
Write usage message to stderr on error
When the parsing of parameters/flags fails eg. when a required flag is
missing, print the usage statement and error to stderr instead of
stdout.
10 years ago
Dmitri Shuralyov
9a9f155278
Travis: Perform gofmt, go vet checks; use race detector during tests.
This change augments the Travis CI build to perform:
- Check that all files follow gofmt style, including -s (simplify) option.
- Check that go vet does not report any problems.
- Use race detector when running tests, to ensure there are no data races found.
10 years ago
Matt Silverlock
48e889f422
Merge pull request #133 from mttrs/govet
[test] Correct a printf verb type
10 years ago
Brett Langdon
383b8b84c1
Remove excess trailing whitespace from Usage generation
10 years ago
mitsuteru sawa
a90bbbc6fa
Correct a printf verb type
% go vet
mux_test.go:1080: arg len(ancestors) for printf verb %s of wrong type:
int
10 years ago
Alex Flint
53364a0be4
Merge pull request #6 from alexflint/coveralls_badge
Add coveralls badge
10 years ago
Alex Flint
239d0c1c6f
add coveralls badge
10 years ago
Alex Flint
4ca36520b3
Merge pull request #5 from alexflint/usage_tests
Add more tests for parser
10 years ago
Alex Flint
70c56eff66
add more tests
10 years ago
Alex Flint
16cae5fe0c
Merge pull request #4 from alexflint/usage_tests
add tests for usage info
10 years ago
Alex Flint
9111061915
add tests for usage info
10 years ago
Alex Flint
3bcc30f8fe
Merge pull request #3 from alexflint/add_coveralls
add coveralls to .travis.yml
10 years ago
Alex Flint
6a22722d8c
add coveralls to .travis.yml
10 years ago
Alex Flint
5185642348
fix note on boolean flags in readme
10 years ago
Alex Flint
95bf6f25e0
fix first example in docs - h/t eric somerlade
10 years ago
Alex Flint
60f2612c0c
separate help into WriteUsage and WriteHelp
10 years ago
Alex Flint
bcb41ba048
add travis badge
10 years ago
Alex Flint
4d271f5326
fix float test for go1.4
10 years ago
Alex Flint
8b5a16fafe
fix examples
10 years ago
Alex Flint
3ff6f256dc
remove extra go gets in travis
10 years ago
Alex Flint
f042ab6386
add .travis.yml
10 years ago
Alex Flint
cd9f5188a8
fix example
10 years ago
Alex Flint
beede9329a
added runnable examples
10 years ago
Dmitri Shuralyov
6eb49d4ba5
Add support for 'renamed' issue events.
Documented at https://developer.github.com/v3/issues/events/#events-1
and https://developer.github.com/v3/issues/events/#attributes .
> Event "renamed":
> The issue title was changed.
> Attribute "rename":
> An object containing rename details including ‘from’ and ‘to’
> attributes. Only provided for ‘renamed’ events.
10 years ago
Alex Flint
30befae91a
move more stuff over to the parser struct
10 years ago
Alex Flint
f427e9f317
added parser struct
10 years ago
Alex Flint
026a824666
udpate readme
10 years ago
Alex Flint
b666b30474
udpate readme
10 years ago
Alex Flint
19d956870f
udpate readme
10 years ago
Alex Flint
6dc9bbbdfd
udpate readme
10 years ago
Alex Flint
2ac8f555a5
udpate readme
10 years ago