init docforge lib
This commit is contained in:
33
docforge/cli/__init__.pyi
Normal file
33
docforge/cli/__init__.pyi
Normal file
@@ -0,0 +1,33 @@
|
||||
"""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: ...
|
||||
Reference in New Issue
Block a user