Home > borogove > CommandSession > execute
CommandSession.execute() method
Continue this command session, optionally submitting form data
Signature:
execute(action?: string | null, data?: { [key: string]: string | string[] } | Map<string markdown="1",string | string[]> | FormData | null, formIdx?: number): Promise<borogove markdown="1"_CommandSession>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| action | string | null | (Optional) requested action, or null for the default action |
| data | { [key: string]: string | string[] } | Map<string,string | string[]> | FormData | null | (Optional) form values to submit for the selected form |
| formIdx | number |
(Optional) index of the form in forms to submit
|
Returns:
Promise<borogove_CommandSession>
Promise resolving to the next command session state