def status_text

cswap-bend-cli@0.1.0.0 · clilist.bend:224

import cswap-bend-cli@0.1.0.0/clilist.bend as Clilist
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/view.bend as View

224def status_text(+a: View.Acct, +total: Json.Json, +now: U32, +off: U32) -> String:
225  match a:
226    case View.Acct{num, email, org_name, org_uuid, active, alias, disabled, login, sentinel, row}:
227      "Status: Account-" ++ U32.show(num) ++ " (" ++ email ++ " [" ++ tag_of(org_name) ++ "])\n  Total managed accounts: " ++ total_text(total) ++ "\n"
228        ++ indent2(acct_lines(a, now, off))

Uses (10)

Used by (1)