def remove
import cswap-bend-cli@0.1.0.0/store/ops.bend as Opsimport Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/lock.bend as Lock
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
249# Take an account out of rotation by slot number, alias or email. Its
250# credential is moved to credentials/.removed/<utc-ts>-<slot>-<email>.enc
251# (0600), never deleted. The confirmation prompt belongs to the CLI. When the
252# account is the active one the answer starts with the reference's warning
253# line. Several accounts sharing an email are an error here (the reference
254# asks interactively).
255def remove(+ctx: SBase.Ctx, +ident: String) -> Act.of(String):
256 do ActM<String>:
257 Lock.with_lock(String, SBase.lock_path(SBase.root_of(ctx)), 10000, remove2(SBase.root_of(ctx), ident))