@@ -44,7 +44,7 @@ The audit identified several limitations in the current CLI tools:
4444 """ Add detect command parser to the subparsers.
4545
4646 Parameters
47- ----------
47+ ----
4848 subparsers : argparse._SubParsersAction
4949 Subparsers object to add command to
5050 """
@@ -153,14 +153,14 @@ The audit identified several limitations in the current CLI tools:
153153 """ Detect repositories in a directory.
154154
155155 Parameters
156- ----------
156+ ----
157157 args : argparse.Namespace
158158 Parsed command arguments
159159 ctx : CliContext
160160 CLI context
161161
162162 Returns
163- -------
163+ ----
164164 int
165165 Exit code
166166 """
@@ -224,6 +224,7 @@ The audit identified several limitations in the current CLI tools:
224224 import traceback
225225 traceback.print_exc()
226226 return 1
227+ ```
227228
2282294 . ** Implementation Details** :
229230 ``` python
@@ -243,7 +244,7 @@ The audit identified several limitations in the current CLI tools:
243244 """ Detect repositories in a directory.
244245
245246 Parameters
246- ----------
247+ ----
247248 directory : Path
248249 Directory to scan for repositories
249250 recursive : bool
@@ -264,7 +265,7 @@ The audit identified several limitations in the current CLI tools:
264265 Detect and include remote configurations
265266
266267 Returns
267- -------
268+ ----
268269 list[Repository]
269270 List of detected Repository objects
270271 """
@@ -307,7 +308,7 @@ The audit identified several limitations in the current CLI tools:
307308 """ Add lock command parser to the subparsers.
308309
309310 Parameters
310- ----------
311+ ----
311312 subparsers : argparse._SubParsersAction
312313 Subparsers object to add command to
313314 """
@@ -355,14 +356,14 @@ The audit identified several limitations in the current CLI tools:
355356 """ Create a lock file with specific repository versions.
356357
357358 Parameters
358- ----------
359+ ----
359360 args : argparse.Namespace
360361 Parsed command arguments
361362 ctx : CliContext
362363 CLI context
363364
364365 Returns
365- -------
366+ ----
366367 int
367368 Exit code
368369 """
@@ -406,12 +407,15 @@ The audit identified several limitations in the current CLI tools:
4064074 . ** Lock File Model** :
407408 ``` python
408409 # src/vcspull/config/models.py
410+ import typing as t
411+ from pathlib import Path
412+ from pydantic import BaseModel, Field, ConfigDict
409413
410414 class LockedRepository (BaseModel ):
411415 """ Repository with locked version information.
412416
413417 Parameters
414- ----------
418+ ----
415419 name : str
416420 Name of the repository
417421 path : Path
@@ -437,7 +441,7 @@ The audit identified several limitations in the current CLI tools:
437441 """ Lock file for repository versions.
438442
439443 Parameters
440- ----------
444+ ----
441445 repositories : list[LockedRepository]
442446 List of locked repositories
443447 """
@@ -451,7 +455,7 @@ The audit identified several limitations in the current CLI tools:
451455 """ Save lock file to disk.
452456
453457 Parameters
454- ----------
458+ ----
455459 path : Path
456460 Path to save lock file
457461 """
@@ -472,17 +476,17 @@ The audit identified several limitations in the current CLI tools:
472476 """ Load lock file from disk.
473477
474478 Parameters
475- ----------
479+ ----
476480 path : Path
477481 Path to lock file
478482
479483 Returns
480- -------
484+ ----
481485 LockFile
482486 Loaded lock file
483487
484488 Raises
485- ------
489+ ----
486490 FileNotFoundError
487491 If lock file does not exist
488492 """
@@ -527,7 +531,7 @@ The audit identified several limitations in the current CLI tools:
527531 """ Add apply-lock command parser to the subparsers.
528532
529533 Parameters
530- ----------
534+ ----
531535 subparsers : argparse._SubParsersAction
532536 Subparsers object to add command to
533537 """
@@ -575,14 +579,14 @@ The audit identified several limitations in the current CLI tools:
575579 """ Apply lock file to ensure repositories are at specific versions.
576580
577581 Parameters
578- ----------
582+ ----
579583 args : argparse.Namespace
580584 Parsed command arguments
581585 ctx : CliContext
582586 CLI context
583587
584588 Returns
585- -------
589+ ----
586590 int
587591 Exit code
588592 """
@@ -656,12 +660,12 @@ def main(argv: t.Optional[list[str]] = None) -> int:
656660 """ CLI entry point.
657661
658662 Parameters
659- ----------
663+ ----
660664 argv : Optional[list[str]]
661665 Command line arguments, defaults to sys.argv[1:] if not provided
662666
663667 Returns
664- -------
668+ ----
665669 int
666670 Exit code
667671 """
@@ -733,7 +737,7 @@ if __name__ == "__main__":
733737 """ Register shell completion for the parser.
734738
735739 Parameters
736- ----------
740+ ----
737741 parser : argparse.ArgumentParser
738742 Argument parser to register completion for
739743 """
0 commit comments