Exec.help_text: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/exec.bend as Exec Lines 21-66 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=21&end_line=66 import Base def help_text() -> String: "usage: cswap [args] [options]\n\nMulti-Account Switcher for Claude Code\n\nCommands:\n" ++ " cswap help show this help\n" ++ " cswap list list managed accounts\n" ++ " cswap status show current account\n" ++ " cswap switch rotate to the next account\n" ++ " cswap switch switch to a specific account\n" ++ " cswap add add the current account\n" ++ " cswap add-token [TOKEN|-] register a setup-token or API key\n" ++ " cswap remove remove an account\n" ++ " cswap auto auto-switch when nearing rate limits\n" ++ " cswap config [set KEY VALUE] show or change settings (settings.json)\n" ++ " cswap profile [list|show|use|set|remove] behaviour profiles (strategy, threshold, models, cooldown, interval)\n" ++ " cswap import-usage adopt usage another machine read (list --json)\n" ++ " cswap config export the whole settings.json (profiles included); --format json|yaml|toon|csv\n" ++ " cswap config import FILE|- merge a settings file in (.json .yaml .yml .toon, .csv as key,value rows)\n" ++ " cswap profile export [NAME] the profiles (or one) as a document\n" ++ " cswap profile import FILE|- merge profiles in\n" ++ " cswap rpc one request per line on stdin, one response per line on stdout (docs/API.md)\n" ++ " cswap serve --socket PATH the same protocol on a unix socket (mode 0600)\n" ++ " cswap tui read-only dashboard, redrawn every 2 s until killed (--once, --interval N)\n" ++ " cswap watch same dashboard as tui (periodic refresh, no key bindings)\n" ++ " cswap menubar not supported in cswap-bend (exit 2); use cswap tui\n" ++ " cswap upgrade show how to upgrade this build (rebuild from the repo)\n\n" ++ "Aliases: ls=list rm=remove update=upgrade\n\n" ++ "options:\n" ++ " -h, --help show this help message and exit\n" ++ " --version show program's version number and exit\n" ++ " --debug Enable debug logging\n" ++ " --json Emit machine-readable JSON to stdout (use with 'list', 'status', or 'switch').\n" ++ " --format FORMAT text (default), json (same as --json), csv, yaml or toon, for list, status, switch,\n" ++ " config, profile, import-usage and the 'auto' event stream\n" ++ " --no-input Never read standard input; a prompt becomes an error\n" ++ " --yes Answer the 'remove' confirmation\n" ++ " --slot NUM Specify slot number when adding account (use with 'add' or 'add-token')\n" ++ " --email EMAIL Email address for the account. Optional with 'add-token'; defaults to\n" ++ " setup-token-{slot}@token.local (or api-key-{slot}@token.local for API keys)\n" ++ " --alias NAME Set a short display alias for the account (use with 'add')\n" ++ " --hold SECONDS With 'import-usage': keep this machine from fetching the imported accounts\n" ++ " for this many seconds (0 lifts an earlier hold)\n\n" ++ "Flags combine with subcommands:\n" ++ " cswap list --json\n" ++ " cswap import-usage usage.json --hold 600 # adopt another machine's list --json\n" ++ " cswap add --slot 3 # add to a specific slot\n" ++ " cswap add-token sk-ant-oat01-... --email me@example.com\n" ++ " cswap config set autoswitch.threshold 80\n" Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append