def plan.of

cswap-bend-cli@0.1.0.0 · profcmd.bend:323

import cswap-bend-cli@0.1.0.0/profcmd.bend as Profcmd
import Base

323# `profile [list | show [NAME] | use NAME | set NAME KEY VALUE | remove NAME]`, flags removed.
324def plan.of(args: List<String>) -> Plan:
325  match args:
326    case Nil{}:
327      PList{}
328    case Con{+a, rest}:
329      plan.verb(String.eq(a, "list") || String.eq(a, "ls"), String.eq(a, "show"), String.eq(a, "use"), String.eq(a, "set"), String.eq(a, "remove"), a, rest)

Uses (6)

Used by (1)