This commit is contained in:
@@ -15,7 +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."""
|
||||
return state_folder(env, home) / "deploy-release"
|
||||
return state_folder(env, home) / "cut-release"
|
||||
|
||||
|
||||
def run_name(began: float, pid: int) -> str:
|
||||
@@ -46,12 +46,12 @@ def kept(trace: pathlib.Path | None, line: str, now: Clock, out: typing.TextIO)
|
||||
with trace.open("a", encoding="utf-8") as file:
|
||||
file.write(stamped(now(), line))
|
||||
except OSError as failure:
|
||||
print(f"deploy-release: warning: the trace {trace} could not be written: {failure}", file=out)
|
||||
print(f"cut-release: warning: the trace {trace} could not be written: {failure}", file=out)
|
||||
|
||||
|
||||
def saying(trace: pathlib.Path | None, now: Clock, out: typing.TextIO) -> Say:
|
||||
"""Says each step on out, so the human sees how far the cut got before the changelog fills the screen, and keeps it in trace."""
|
||||
def say(step: str) -> None:
|
||||
print(f"deploy-release: {step}", file=out)
|
||||
print(f"cut-release: {step}", file=out)
|
||||
kept(trace, step, now, out)
|
||||
return say
|
||||
|
||||
Reference in New Issue
Block a user