def profile_export_out
import cswap-bend-cli@0.1.0.0/cfgio.bend as Cfgioimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/profile.bend as P
325def profile_export_out(m: Maybe<&2, String>, +raw: Json.Json) -> Cmd.Out:
326 match m:
327 case None{}:
328 Cmd.doc(all_profiles(raw))
329 case Some{+name}:
330 one_profile(P.has_stored(raw, name), raw, name)