Add stub `shac check` command

I chose to use the posix-style "pflag" library instead of the stdlib
"flag" since posix-style flags are much more common in command line
tools outside Google and in languages other than Go, and we'd like for
shac to be friendly to projects outside Google.

Unfortunately I couldn't find any reputable "subcommands" libraries that
use pflag, so I implemented my own simple subcommands framework,
emulating github.com/google/subcommands. It's pretty rudimentary for now
(no help text or anything) but can easily be extended later as UX
becomes more important.

Change-Id: I366642d70c32fe573ae6d2a014658068100011cd
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/820747
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Commit-Queue: Marc-Antoine Ruel <maruel@google.com>
5 files changed
tree: 4aa5ad2bc783e3d5539f8dee88e2d5768ea42e4b
  1. internal/
  2. scripts/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTING.md
  6. go.mod
  7. go.sum
  8. LICENSE
  9. main.go
  10. OWNERS
  11. PATENTS
  12. README.md
README.md

shac

Scalable Checks.

More to come soon!