summaryrefslogtreecommitdiffstats
path: root/third_party/python/pip_tools/piptools/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/pip_tools/piptools/__main__.py')
-rw-r--r--third_party/python/pip_tools/piptools/__main__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/third_party/python/pip_tools/piptools/__main__.py b/third_party/python/pip_tools/piptools/__main__.py
new file mode 100644
index 0000000000..2d8b75e85d
--- /dev/null
+++ b/third_party/python/pip_tools/piptools/__main__.py
@@ -0,0 +1,17 @@
+import click
+
+from piptools.scripts import compile, sync
+
+
+@click.group()
+def cli():
+ pass
+
+
+cli.add_command(compile.cli, "compile")
+cli.add_command(sync.cli, "sync")
+
+
+# Enable ``python -m piptools ...``.
+if __name__ == "__main__": # pragma: no branch
+ cli()