You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
410 B
Python
20 lines
410 B
Python
![]()
2 years ago
|
import click
|
||
|
from hyperlpr3.command.aliased_group import AliasedGroup
|
||
|
from hyperlpr3.command.sample import sample
|
||
|
from hyperlpr3.command.serve import rest
|
||
|
|
||
|
__all__ = ['cli']
|
||
|
|
||
|
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
|
||
|
|
||
|
|
||
|
@click.command(cls=AliasedGroup, context_settings=CONTEXT_SETTINGS)
|
||
|
def cli():
|
||
|
pass
|
||
|
|
||
|
|
||
|
cli.add_command(sample)
|
||
|
cli.add_command(rest)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
cli()
|