def restore
cswap-bend-cli@0.1.0.0 · swlive.bend:200
import cswap-bend-cli@0.1.0.0/swlive.bend as Swlive
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/store/io.bend as SIo
200
201def restore(+ctx: SBase.Ctx, +root: String, +creds: Maybe<&2, String>, +cfg: Maybe<&2, String>, +seq_text: String) -> Act.of(Unit):
202 do ActM<Unit>:
203 restore_text(SBase.live_creds_path(ctx), creds)
204 restore_text(SBase.global_config_path(ctx), cfg)
205 SIo.write_secret(SBase.seq_path(root), seq_text)