sourcegraph / srclib

srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go and Java, with Python, JavaScript, and Ruby in beta) with a common output format, and a CLI tool for running the analysis.
https://srclib.org
Other
942 stars 62 forks source link

cli: expose AddCommands to allow mounting srclib as a subcommand of another CLI #235

Closed sqs closed 8 years ago

sqs commented 8 years ago

This lets you create another program "myprogram" that mounts srclib's CLI as "myprogram srclib ...". For example, "myprogram srclib toolchain list" would run that subcommand of srclib.

Mostly an internal change only likely to affect (and benefit) Sourcegraph.

sqs commented 8 years ago

Please also review https://src.sourcegraph.com/sourcegraph/.changes/510