def clash3

cswap-bend-cli@0.1.0.0 · store/ops.bend:54

import cswap-bend-cli@0.1.0.0/store/ops.bend as Ops
import Base
import cswap-bend-cli@0.1.0.0/store/plan.bend as SPlan

54def clash3(+existing_api: Bool, +n: String, +email: String, +api_key: Bool) -> Maybe<&2, String>:
55  match existing_api api_key:
56    case True{} True{}:
57      None{}
58    case False{} False{}:
59      None{}
60    case _ _:
61      Some{"'" ++ email ++ "' already exists as an " ++ SPlan.kind_title(existing_api) ++ " account (slot " ++ n ++ "); cannot add it as an "
62        ++ SPlan.kind_title(api_key) ++ " account. Pass a distinct --email."}

Uses (5)

Used by (1)