20 lines
290 B
Python
20 lines
290 B
Python
from __future__ import annotations
|
|
|
|
import click
|
|
|
|
from piptools.scripts import compile, sync
|
|
|
|
|
|
@click.group()
|
|
def cli() -> None:
|
|
pass
|
|
|
|
|
|
cli.add_command(compile.cli, "compile")
|
|
cli.add_command(sync.cli, "sync")
|
|
|
|
|
|
# Enable ``python -m piptools ...``.
|
|
if __name__ == "__main__":
|
|
cli()
|