This commit is contained in:
@@ -71,6 +71,7 @@ import sys
|
||||
import time
|
||||
|
||||
from deploy_release.ci_script import ci_runner, CI_SECONDS, removed_container
|
||||
from loop_state.paths import CLAUDE_HOME
|
||||
from deploy_release.cut import cut
|
||||
from deploy_release.patch import cut_patch
|
||||
from deploy_release.deploy import deploy
|
||||
@@ -88,7 +89,7 @@ def main(argv: list[str]) -> int:
|
||||
if len(rest) > 1 or rest[:1] and rest[0].startswith("-") or patching and (commits is None or commits.startswith("-")):
|
||||
print("deploy-release: usage: deploy-release [--cut | --cut-patch <commits>] [<checkout>]", file=sys.stderr)
|
||||
return 1
|
||||
checkout = rest[0] if rest else str(pathlib.Path.home() / ".claude")
|
||||
checkout = rest[0] if rest else str(pathlib.Path.home() / CLAUDE_HOME)
|
||||
if not cutting and commits is None:
|
||||
moved = deploy(checkout)
|
||||
if isinstance(moved, Failure):
|
||||
|
||||
@@ -4,6 +4,7 @@ import time
|
||||
import typing
|
||||
|
||||
from failure import Failure
|
||||
from loop_state.paths import state_folder
|
||||
from text_files import utc_stamp
|
||||
|
||||
# Says that one step of a cut finished, as `saying` makes it.
|
||||
@@ -14,8 +15,7 @@ Clock = typing.Callable[[], float]
|
||||
|
||||
def trace_folder(env: typing.Mapping[str, str], home: pathlib.Path) -> pathlib.Path:
|
||||
"""The folder each cut keeps its trace in, under the state folder as run-heavy finds it."""
|
||||
state = env.get("XDG_STATE_HOME") or str(home / ".local" / "state")
|
||||
return pathlib.Path(state) / "deploy-release"
|
||||
return state_folder(env, home) / "deploy-release"
|
||||
|
||||
|
||||
def run_name(began: float, pid: int) -> str:
|
||||
|
||||
Reference in New Issue
Block a user