Skip to content

Tags: bobg/subcmd

Tags

v2.3.0

Toggle v2.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add the Copier type (#8)

* Checkpoint.

* Make Copy() optional; add Copier, remove ValueType.

v2.2.2

Toggle v2.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
When pulling a default parameter value out of a Param via type assert…

…ion, try all valid types. Fixes #4. (#5)

v2.2.1

Toggle v2.2.1's commit message
Adjust to limitations of Go's cross-reference markdown.

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Permit variadic functions and flag.Value-typed parameters (#3)

* Checkpoint.

* Doc.

* Add support for flag.Value-typed parameters.

* Doc tweaks. Improve TestPrefix.

* Add missing file value_test.go. Add cross-reference syntax to godoc.

* Fix Readme links.

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Check and external subcommands (#2)

v2.0.1

Toggle v2.0.1's commit message
Fix a documentation bug.

v2.0.0

Toggle v2.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
V2 of the API: better help, plus positional parameter parsing (#1)

* Draft of v2 API.

* Add Subcmd.Usage and a test.

* WIP: positional parameters.

* Checkpoint.

* Revise usage and error handling, add tests.

* More test coverage.

* Reduce cyclomatic complexity. Add godoc. Resolve golint warnings.

* s/Long/Detail/. Add more tests. Remove unused errors.

* Add default-value handling for optional positional args, and another test.

* Update doc and examples. Correctly handle flags mixed with positional params in a Params slice.

v1.0.4

Toggle v1.0.4's commit message
Fix a bug with zero-ary subcommands and add a regression test.

v1.0.3

Toggle v1.0.3's commit message
Add coveralls.io coverage and badge.

v1.0.2

Toggle v1.0.2's commit message
Awesome Go feedback: add test coverage; reduce cyclomatic complexity;…

… add usage example to Readme.