pub async fn dispatch( gateway: &str, output: OutputFormat, command: Command, ) -> Result<()>
分发一条已解析的 Command 到对应 handler。
Command
供 main 入口与 REPL 共用。REPL 会禁用其中不适合在子 shell 内跑的命令 (例如再进入 Repl),做法:在调用前 short-circuit。
Repl