Initial upload: API Mock CLI v0.1.0
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / type-check (push) Has been cancelled
CI / build (push) Has been cancelled
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / type-check (push) Has been cancelled
CI / build (push) Has been cancelled
This commit is contained in:
20
src/cli/main.py
Normal file
20
src/cli/main.py
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import sys
|
||||||
|
import click
|
||||||
|
from src.cli.commands import init, start, stop, generate
|
||||||
|
|
||||||
|
|
||||||
|
@click.group()
|
||||||
|
@click.version_option(version="0.1.0")
|
||||||
|
def main():
|
||||||
|
"""API Mock CLI - Create shareable local mock servers"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
main.add_command(init.init_command, "init")
|
||||||
|
main.add_command(start.start_command, "start")
|
||||||
|
main.add_command(stop.stop_command, "stop")
|
||||||
|
main.add_command(generate.generate_command, "generate")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sys.exit(main())
|
||||||
Reference in New Issue
Block a user