Add core modules: CLI, recorder, server, snapshot manager
This commit is contained in:
20
api_snapshot/cli/cli.py
Normal file
20
api_snapshot/cli/cli.py
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import sys
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
|
import click
|
||||||
|
from rich.console import Console
|
||||||
|
|
||||||
|
console = Console()
|
||||||
|
|
||||||
|
|
||||||
|
@click.group()
|
||||||
|
@click.version_option(version="0.1.0")
|
||||||
|
@click.option("--verbose", "-v", is_flag=True, help="Enable verbose output")
|
||||||
|
def main(verbose: bool) -> None:
|
||||||
|
"""API Snapshot CLI - Record HTTP API traffic and generate mock servers."""
|
||||||
|
if verbose:
|
||||||
|
click.echo("Verbose mode enabled")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
Reference in New Issue
Block a user