commit | a55c8a7168eac483e5405111adb47b5a70c595f7 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Mon Dec 10 23:50:40 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Dec 10 23:50:40 2018 |
tree | 6937b67f39dca7983ba8e07492a74e44b2c61c5d | |
parent | e0291a833256290b8551792e6750ec1e02a861c1 [diff] |
[lucicfg] Boilerplate for command line interface. Follows current "best practices" of CLIs in luci-go: * All subcommands have -log-level and -json-output. * Subcommand that do RPCs consistently expose auth and service host options. * All Chrome Infra hardcoded stuff is replaceable (if only anyone wanted to replace it). * Has version string that also ends up in User-Agent strings. * Supports required positional arguments and required flags. R=iannucci@chromium.org BUG=833946 Change-Id: I792d416e21fe82220eda9df8eed49e729c70d40b Reviewed-on: https://chromium-review.googlesource.com/c/1368813 Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
Contributing uses the same flow as Chromium contributions.