stg-layers 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
stg_layers/__init__.py ADDED
@@ -0,0 +1,18 @@
1
+ import sys
2
+ from pathlib import Path
3
+
4
+ from stg_layers.app import StgLayersApp
5
+ from stg_layers.repository import RepositoryError, StGitRepository
6
+
7
+
8
+ def main() -> None:
9
+ try:
10
+ repository = StGitRepository.discover(Path.cwd())
11
+ except RepositoryError as error:
12
+ print(f"stg-layers: {error}", file=sys.stderr)
13
+ raise SystemExit(1) from error
14
+
15
+ StgLayersApp(repository).run()
16
+
17
+
18
+ __all__ = ["main"]