Exec.account_cmd: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/exec.bend as Exec Lines 98-111 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=98&end_line=111 import Base import cswap-bend-cli@0.1.0.0/cliops.bend as Cliops 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 account_cmd(+ni: Cliops.Ni, +p: Args.Parsed) -> IO(Cmd.Out): match p: case Args.PAdd{slot, alias}: with_ctx(ctx => Clibase.run_act(False{}, Cliops.add_cmd(ctx, alias, slot, ni))) case Args.PAddToken{token, email, slot}: with_ctx(ctx => Clibase.run_act(False{}, Cliops.add_token_cmd(ctx, token, email, slot, ni))) case Args.PRemove{ident}: with_ctx(ctx => Clibase.run_act(False{}, Cliops.remove_cmd(ctx, ident, ni))) case Args.PImportUsage{path, hold}: with_ctx(ctx => Clibase.run_act(False{}, Cliops.import_cmd(ctx, path, hold))) case Args.PDeferred{name}: IO.pure(Cmd.Out, deferred(name)) case _: IO.pure(Cmd.Out, not_yet("command")) Uses (14): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure 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/cliops.bend&name=Ni https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cliops.bend&name=add_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cliops.bend&name=add_token_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cliops.bend&name=import_cmd https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cliops.bend&name=remove_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=deferred https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/exec.bend&name=not_yet https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/exec.bend&name=with_ctx