commit | a4141cc8723941ce5b7a9ab87b77f397a80e2be6 | [log] [tgz] |
---|---|---|
author | Marc-Antoine Ruel <maruel@chromium.org> | Thu Jun 18 18:37:48 2015 |
committer | Marc-Antoine Ruel <maruel@chromium.org> | Thu Jun 18 18:37:48 2015 |
tree | 6aaba28fb1e54b52a7385b69e8a90619b1e3e0be | |
parent | 3a25827b419f7ec71b1f54d075cdc43fef2e3a59 [diff] |
Update pre-commit-go to pcg.
This package permits a Go application to implement subcommands support similar to what is supported by the ‘go’ tool.
The library is designed so that the test cases can run concurrently. Using global flags variables is discouraged to keep your program testable conccurently.
The intented command is found via heuristic search;
lo
will run longcommand
as long as there's no command with the same prefix.longcmmand
or longcmomand
will properly trigger longcommand
.sample-simple
for a barebone sample skeleton usable as-is.sample-complex
for a complex sample using advanced features.subcommands/subcommandstest
for tools to help testing an application using subcommands. One of the main benefit is t.Parallel() just works, because subcommands help wrapping global variables.