(
action: string,
options: Record<string, string | boolean>,
common: CommandCommonOptions & { help?: boolean }
)
| 151 | } |
| 152 | |
| 153 | function parseExchangeCommand( |
| 154 | action: string, |
| 155 | options: Record<string, string | boolean>, |
| 156 | common: CommandCommonOptions & { help?: boolean } |
| 157 | ): ParsedCliCommand { |
| 158 | assertAllowedOptions(options, new Set(GLOBAL_OPTION_NAMES)); |
| 159 | if (action === "list") return { kind: "exchange-list", ...common }; |
| 160 | if (action === "capabilities") return { kind: "exchange-capabilities", ...common }; |
| 161 | throw new CommandParseError(`Unsupported exchange action '${action}'`); |
| 162 | } |
| 163 | |
| 164 | function parseMarketCommand( |
| 165 | action: string, |
no test coverage detected