Skip to content

Commit b76396b

Browse files
JordanMarrclaude
andcommitted
README: point >8 inputs guidance at the input { } CE
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FrmC1EQmyB68Tqsn3EG7UA
1 parent 14002d5 commit b76396b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ let main argv =
333333

334334
You may need to pass the `ActionContext` to your handler function for the following reasons:
335335
* You need access to the `CancellationToken` for an asynchronous action.
336-
* You need to manually parse values via the `ParseResult`. (This is necessary if you have more than 8 inputs.)
336+
* You need to manually parse values via the `ParseResult`. (Note that for more than 8 inputs, the [`input { }` CE](#composing-inputs-with-input--) is now the recommended approach.)
337337

338338
You can pass the `ActionContext` via the `Input.context` value.
339339

@@ -381,7 +381,9 @@ let main argv =
381381
<details>
382382
<summary><b>More than 8 inputs</b></summary>
383383

384-
Currently, a command handler function is limited to accept a tuple with no more than eight inputs.
384+
> 💡 As of v2.2.0, the recommended way to handle more than 8 inputs is the [`input { }` computation expression](#composing-inputs-with-input--), which composes any number of inputs into a single typed value with no manual parsing. The technique below still works and remains useful when you need direct access to the `ParseResult`.
385+
386+
The `inputs` tuple is limited to no more than eight inputs.
385387
If you need more, you can pass in the `ActionContext` to your action handler and manually get as many input values as you like (assuming they have been registered in the command builder's `addInputs` operation).
386388

387389
```F#

0 commit comments

Comments
 (0)