3
3
# pylint: disable=no-value-for-parameter
4
4
5
5
import asyncio
6
- from typing import Optional
6
+ from typing import Optional , Tuple
7
7
8
8
import click
9
9
@@ -22,8 +22,8 @@ def main(
22
22
source : str ,
23
23
output : Optional [str ],
24
24
max_size : int ,
25
- exclude_pattern : tuple [str , ...],
26
- include_pattern : tuple [str , ...],
25
+ exclude_pattern : Tuple [str , ...],
26
+ include_pattern : Tuple [str , ...],
27
27
branch : Optional [str ],
28
28
):
29
29
"""
@@ -35,16 +35,16 @@ def main(
35
35
----------
36
36
source : str
37
37
The source directory or repository to analyze.
38
- output : Optional[ str]
38
+ output : str, optional
39
39
The path where the output file will be written. If not specified, the output will be written
40
40
to a file named `<repo_name>.txt` in the current directory.
41
41
max_size : int
42
42
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, ...]
46
46
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
48
48
The branch to clone (optional).
49
49
"""
50
50
# 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(
55
55
source : str ,
56
56
output : Optional [str ],
57
57
max_size : int ,
58
- exclude_pattern : tuple [str , ...],
59
- include_pattern : tuple [str , ...],
58
+ exclude_pattern : Tuple [str , ...],
59
+ include_pattern : Tuple [str , ...],
60
60
branch : Optional [str ],
61
61
) -> None :
62
62
"""
@@ -69,16 +69,16 @@ async def _async_main(
69
69
----------
70
70
source : str
71
71
The source directory or repository to analyze.
72
- output : Optional[ str]
72
+ output : str, optional
73
73
The path where the output file will be written. If not specified, the output will be written
74
74
to a file named `<repo_name>.txt` in the current directory.
75
75
max_size : int
76
76
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, ...]
78
78
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, ...]
80
80
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
82
82
The branch to clone (optional).
83
83
84
84
Raises
0 commit comments