def plain3

cswap-bend-cli@0.1.0.0 · daemon/entry.bend:115

import cswap-bend-cli@0.1.0.0/daemon/entry.bend as Entry
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/swlive.bend as L
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg

115# `cswap auto ARGS` (ARGS after the verb). `state_dir` is where the pid file,
116# status file and log live; pass the backup root when there is no better place.
117def plain3(+ok: Bool, +ctx: SBase.Ctx, +state_dir: String, +opts: L.Opts, +version: String, +over: Maybe<&2, String>, +rest: List<&2, String>, +err: String) -> Act.of(U32):
118  match ok:
119    case True{}:
120      with_flags(ctx, state_dir, opts, version, over, Cfg.parse_flags(rest))
121    case False{}:
122      Act.fail(U32, 2, "cswap auto: error: " ++ err)

Uses (12)

Used by (1)