stak-git 1.0.0

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.
@@ -0,0 +1,32 @@
1
+ """stak - Minimal stacked changes for git."""
2
+
3
+ import subprocess
4
+ import sys
5
+ from pathlib import Path
6
+
7
+
8
+ def main():
9
+ """Run the stak bash script."""
10
+ # Find the stak script bundled with this package
11
+ script_path = Path(__file__).parent / "stak"
12
+
13
+ if not script_path.exists():
14
+ print("Error: stak script not found in package", file=sys.stderr)
15
+ sys.exit(1)
16
+
17
+ try:
18
+ result = subprocess.run(
19
+ ["bash", str(script_path)] + sys.argv[1:],
20
+ check=False
21
+ )
22
+ sys.exit(result.returncode)
23
+ except FileNotFoundError:
24
+ print("Error: bash is required to run stak", file=sys.stderr)
25
+ sys.exit(1)
26
+ except KeyboardInterrupt:
27
+ sys.exit(130)
28
+
29
+
30
+ if __name__ == "__main__":
31
+ main()
32
+