Print each chunk that asks a question and since when each parked chunk awaits its gate in do-epic --status
CI / tests (pull_request) Failing after 3m23s
CI / tests (pull_request) Failing after 3m23s
This commit is contained in:
@@ -51,6 +51,8 @@ class Listed:
|
||||
dead: bool
|
||||
# What its name says its parked chunk awaits, as the words after PARKED; empty for a chunk that isn't parked.
|
||||
awaits: str = ""
|
||||
# Whether its name ended in WAITS: its chunk's worker asks the human a question.
|
||||
asks: bool = False
|
||||
|
||||
@property
|
||||
def parked(self) -> bool:
|
||||
@@ -90,7 +92,7 @@ def listed(session: str, run: Tmux) -> list[Listed]:
|
||||
def as_listed(shown: str, id: str, pane_dead: str) -> Listed:
|
||||
"""The window tmux shows under the name shown, with the ID id and `#{pane_dead}` as pane_dead."""
|
||||
name, _, awaits = shown.removesuffix(WAITS).partition(PARKED)
|
||||
return Listed(name, id, pane_dead == "1", awaits)
|
||||
return Listed(name, id, pane_dead == "1", awaits, shown.endswith(WAITS))
|
||||
|
||||
|
||||
def everywhere(run: Tmux) -> list[Placed]:
|
||||
|
||||
Reference in New Issue
Block a user