summaryrefslogtreecommitdiffhomepage
path: root/github
diff options
context:
space:
mode:
authorSimon Klee <[email protected]>2026-04-05 15:02:29 +0200
committerSimon Klee <[email protected]>2026-04-09 19:42:25 +0200
commit537160dbc0cfa9e2eb1bc3ea5cf86743a15f8d90 (patch)
tree8e6e27a0ab0aec38ea70a7db967e29a8530c2e51 /github
parentb0600664abacabc3b6bd41de88859248bc2a2594 (diff)
downloadopencode-537160dbc0cfa9e2eb1bc3ea5cf86743a15f8d90.tar.gz
opencode-537160dbc0cfa9e2eb1bc3ea5cf86743a15f8d90.zip
opencode: lazy-load top-level CLI commands
The CLI imports every top-level command before argument parsing has decided which handler will run. This makes simple invocations pay for the full command graph up front and slows down the default startup path. Parse the root argv first and load only the command module that matches the selected top-level command. Keep falling back to the default TUI path for non-command positionals, and preserve root help, version and completion handling
Diffstat (limited to 'github')
0 files changed, 0 insertions, 0 deletions