def needs_login

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/nix_darwin/service/ops.bend:38

import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/service/type.bend as Sv

38# Whether any service needs a user session to start.
39def needs_login(xs: List<&2, Sv.Service>) -> Bool:
40  match xs:
41    case []:
42      False{}
43    case s <> rest:
44      at_login(start(s)) || needs_login(rest)

Uses (6)

Used by (1)