33# pylint: disable=no-value-for-parameter
44
55import asyncio
6- from typing import Optional
6+ from typing import Optional , Tuple
77
88import click
99
@@ -22,8 +22,8 @@ def main(
2222 source : str ,
2323 output : Optional [str ],
2424 max_size : int ,
25- exclude_pattern : tuple [str , ...],
26- include_pattern : tuple [str , ...],
25+ exclude_pattern : Tuple [str , ...],
26+ include_pattern : Tuple [str , ...],
2727 branch : Optional [str ],
2828):
2929 """
@@ -35,16 +35,16 @@ def main(
3535 ----------
3636 source : str
3737 The source directory or repository to analyze.
38- output : Optional[ str]
38+ output : str, optional
3939 The path where the output file will be written. If not specified, the output will be written
4040 to a file named `<repo_name>.txt` in the current directory.
4141 max_size : int
4242 The maximum file size to process, in bytes. Files larger than this size will be ignored.
43- exclude_pattern : tuple [str, ...]
44- A tuple of patterns to exclude during the analysis. Files matching these patterns will be ignored.
45- include_pattern : tuple [str, ...]
43+ exclude_pattern : Tuple [str, ...]
44+ A tuple of patterns to exclude during the analysis. Files matching these patterns will be ignored.
45+ include_pattern : Tuple [str, ...]
4646 A tuple of patterns to include during the analysis. Only files matching these patterns will be processed.
47- branch : Optional[ str]
47+ branch : str, optional
4848 The branch to clone (optional).
4949 """
5050 # Main entry point for the CLI. This function is called when the CLI is run as a script.
@@ -55,8 +55,8 @@ async def _async_main(
5555 source : str ,
5656 output : Optional [str ],
5757 max_size : int ,
58- exclude_pattern : tuple [str , ...],
59- include_pattern : tuple [str , ...],
58+ exclude_pattern : Tuple [str , ...],
59+ include_pattern : Tuple [str , ...],
6060 branch : Optional [str ],
6161) -> None :
6262 """
@@ -69,16 +69,16 @@ async def _async_main(
6969 ----------
7070 source : str
7171 The source directory or repository to analyze.
72- output : Optional[ str]
72+ output : str, optional
7373 The path where the output file will be written. If not specified, the output will be written
7474 to a file named `<repo_name>.txt` in the current directory.
7575 max_size : int
7676 The maximum file size to process, in bytes. Files larger than this size will be ignored.
77- exclude_pattern : tuple [str, ...]
77+ exclude_pattern : Tuple [str, ...]
7878 A tuple of patterns to exclude during the analysis. Files matching these patterns will be ignored.
79- include_pattern : tuple [str, ...]
79+ include_pattern : Tuple [str, ...]
8080 A tuple of patterns to include during the analysis. Only files matching these patterns will be processed.
81- branch : Optional[ str]
81+ branch : str, optional
8282 The branch to clone (optional).
8383
8484 Raises
0 commit comments