Exec.view_cmd: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/exec.bend as Exec Lines 113-122 of cswap-bend-cli@0.1.0.0/exec.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/exec.bend&start_line=113&end_line=122 import Base import cswap-bend-cli@0.1.0.0/cliops.bend as Cliops import cswap-bend-cli@0.1.0.0/clilist.bend as Clilist import cswap-bend-cli@0.1.0.0/cliswitch.bend as Cliswitch import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd import cswap-bend-cli@0.1.0.0/args.bend as Args import cswap-bend-cli@0.1.0.0/clibase.bend as Clibase def view_cmd(+ni: Cliops.Ni, +p: Args.Parsed) -> IO(Cmd.Out): match p: case Args.PList{+json, token_status}: with_ctx(ctx => Clibase.run_act(json, Clilist.list_cmd(ctx, json))) case Args.PStatus{+json}: with_ctx(ctx => Clibase.run_act(json, Clilist.status_cmd(ctx, json))) case Args.PSwitch{ident, force, strategy, model, json}: with_ctx(ctx => Cliswitch.switch_cmd(ctx, ident, force, strategy, model, json)) case _: account_cmd(ni, p) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/args.bend&name=Parsed https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/clibase.bend&name=run_act https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/clilist.bend&name=list_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/clilist.bend&name=status_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cliops.bend&name=Ni https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cliswitch.bend&name=switch_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=Out https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/exec.bend&name=account_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/exec.bend&name=with_ctx