def activate_config

cswap-bend-cli@0.1.0.0 · swbase.bend:102

import cswap-bend-cli@0.1.0.0/swbase.bend as Swbase
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase

102# The live config after activating a target: its oauthAccount, and primaryApiKey
103# either set (target is an API key) or dropped (target is OAuth).
104def activate_config(+cfg: Json.Json, +oauth: Json.Json, +target_creds: String) -> Json.Json:
105  activate2(SBase.looks_like_api_key(target_creds), cfg, oauth, target_creds)

Uses (4)

Used by (1)