def scan_tail
import cli@0.2.0.0/cli.bend as Cliimport Base
3571def scan_tail(tail: Tail, +token: String) -> Tail:
3572 match tail:
3573 case Faulted{state}: scan_faulted(state, token)
3574 case Walk{+state}:
3575 help_walk(scope_find_sub(scan_state_scope(state), token),
3576 state, token)
3577 case Stopped{state}: Stopped{state}