(
action: string,
options: Record<string, string | boolean>,
common: CommandCommonOptions & { help?: boolean }
)
| 193 | } |
| 194 | |
| 195 | function parsePositionCommand( |
| 196 | action: string, |
| 197 | options: Record<string, string | boolean>, |
| 198 | common: CommandCommonOptions & { help?: boolean } |
| 199 | ): ParsedCliCommand { |
| 200 | assertAllowedOptions(options, GLOBAL_OPTION_NAMES); |
| 201 | if (action === "list") { |
| 202 | return { kind: "position-list", ...common }; |
| 203 | } |
| 204 | throw new CommandParseError(`Unsupported position action '${action}'`); |
| 205 | } |
| 206 | |
| 207 | function parseOrderCommand( |
| 208 | action: string, |
no test coverage detected