33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
"""Type stubs for doc-forge CLI package."""
|
|
|
|
from typing import Any, Dict, List, Optional, Union
|
|
from pathlib import Path
|
|
import click
|
|
|
|
@click.group()
|
|
def cli() -> None: ...
|
|
|
|
@cli.command()
|
|
@click.option('--renderer', type=click.Choice(['mkdocs', 'sphinx']), required=True)
|
|
@click.option('--out-dir', type=click.Path(), default='docs')
|
|
@click.argument('modules', nargs=-1)
|
|
def generate(renderer: str, out_dir: Path, modules: List[str]) -> None: ...
|
|
|
|
@cli.command()
|
|
@click.option('--renderer', type=click.Choice(['mkdocs', 'sphinx']), required=True)
|
|
@click.option('--out-dir', type=click.Path(), default='docs')
|
|
def build(renderer: str, out_dir: Path) -> None: ...
|
|
|
|
@cli.command()
|
|
@click.option('--renderer', type=click.Choice(['mkdocs', 'sphinx']), required=True)
|
|
@click.option('--out-dir', type=click.Path(), default='docs')
|
|
@click.option('--host', default='localhost')
|
|
@click.option('--port', type=int, default=8000)
|
|
def serve(renderer: str, out_dir: Path, host: str, port: int) -> None: ...
|
|
|
|
@cli.command()
|
|
@click.option('--out-dir', type=click.Path(), default='mcp')
|
|
@click.argument('modules', nargs=-1)
|
|
def export(out_dir: Path, modules: List[str]) -> None: ...
|
|
|
|
def main() -> None: ... |