Answer principles round 1: 1 🔴, 7 🟡 (0 misread); every effect is handed in as an argument, no test patches a global, and the traces principle scopes tools that run on their user's machine
CI / tests (pull_request) Successful in 3m43s
CI / tests (pull_request) Successful in 3m43s
This commit is contained in:
@@ -39,6 +39,7 @@ move stopped, fix what it names and run a bare deploy-release.
|
||||
import os
|
||||
import pathlib
|
||||
import sys
|
||||
import time
|
||||
|
||||
from deploy_release.cut import cut
|
||||
from deploy_release.deploy import deploy
|
||||
@@ -55,7 +56,7 @@ def main(argv: list[str]) -> int:
|
||||
print("deploy-release: usage: deploy-release [--cut] [<checkout>]", file=sys.stderr)
|
||||
return 1
|
||||
checkout = rest[0] if rest else str(pathlib.Path.home() / ".claude")
|
||||
moved = cut(os.getcwd(), checkout) if cutting else deploy(checkout)
|
||||
moved = cut(os.getcwd(), checkout, time.sleep) if cutting else deploy(checkout)
|
||||
if isinstance(moved, Failure):
|
||||
print(f"deploy-release: {moved.reason}", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user