Coverage for src / repo_sync_kitty / commands / scan.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-23 09:31 -0500

1"""Scan command: list repos from remote forge.""" 

2 

3from typing import Annotated 

4 

5import typer 

6from rich.console import Console 

7 

8console = Console() 

9 

10 

11def scan( 

12 forge: Annotated[str, typer.Argument(help="Forge to scan (github, gitlab, bitbucket)")], 

13 org: Annotated[ 

14 str | None, 

15 typer.Option("--org", "-o", help="Organization/user to scan"), 

16 ] = None, 

17 token: Annotated[ 

18 str | None, 

19 typer.Option("--token", "-t", help="API token for authentication"), 

20 ] = None, 

21 add_to_manifest: Annotated[ 

22 bool, 

23 typer.Option("--add", help="Add discovered repos to manifest"), 

24 ] = False, 

25) -> None: 

26 """Scan a forge for repositories.""" 

27 console.print("[yellow]scan command not yet implemented[/yellow]") 

28 console.print(f" forge: {forge}") 

29 if org: 

30 console.print(f" org: {org}") 

31 if token: 

32 console.print(" token: [redacted]") 

33 console.print(f" add_to_manifest: {add_to_manifest}")