Project: Kui (App Definition and Development / Application Definition & Image Build)
File: kui_shell_test.CLI.md

/ / CLI .CLI timeout: `number` waitTimeout: `number` `Const` command(`cmd`, `app`, `noNewline?`, `noCopyPaste?`, `noFocus?`, `block?`, `currentPrompt?`): `Promise`<{ `app`: `Application` = app; `count`: `number` }\> Execute a CLI command, and return the data-input-count of that command | Name | Type | Default value | | :-- | : | : | | `cmd` | `string` | `undefined` | | `app` | `Application` | `undefined` | | `noNewline` | `boolean` | `false` | | `noCopyPaste` | `boolean` | `undefined` | | `noFocus` | `boolean` | `false` | | `block` | `string` | `undefined` | | `currentPrompt` | `string` | `undefined` | `Promise`<{ `app`: `Application` = app; `count`: `number` }\> `Const` commandInSplit(`cmd`, `app`, `splitIndex`): `Promise`<{ `app`: `Application` = app; `count`: `number` } & { `splitIndex`: `number` }\> Execute the given command in the given split | Name | Type | | :-- | : | | `cmd` | `string` | | `app` | `Application` | | `splitIndex` | `number` | `Promise`<{ `app`: `Application` = app; `count`: `number` } & { `splitIndex`: `number` }\> `Const` exitCode(`statusCode`): `string` \| `number` Exit code code for the given http status code; this is an identity function; for headless mode, there is the -256 part. See headless.js for the analogous headless

| Name | Type | | :-- | :- | | `statusCode` | `string` \| `number` | `string` \| `number` expandLast(`app`, `splitIndex?`, `N?`): `Promise`<`void`\> Click to expand the last replayed sample output | Name | Type | Default value | | :-- | : | : | | `app` | `Application` | `undefined` | | `splitIndex` | `number` | `1` | | `N` | `number` | `1` | `Promise`<`void`\> expandNth(`app`, `N`, `splitIndex?`): `Promise`<`void`\> Click to expand the last replayed sample output | Name | Type | Default value | | :-- | : | : | | `app` | `Application` | `undefined` | | `N` | `number` | `undefined` | | `splitIndex` | `number` | `1` | `Promise`<`void`\> `Const` expectInput(`selector`, `expectedText`): (`app`: `Application`) => `Promise`<`Application`\> | Name | Type | | :- | :- | | `selector` | `string` | | `expectedText` | `string` | `fn` (`app`): `Promise`<`Application`\> | Name | Type | | :- | : | | `app` | `Application` | `Promise`<`Application`\> expectInputContext(`res`, `N`, `expectedText`, `exact?`): `Promise`<`boolean`\> text repl input context text | Name | Type | Default value | | :- | :- | : | | `res` | | `undefined` | | `N` | `number` | `undefined` | | `expectedText` | `string` | `undefined` | | `exact` | `boolean` | `false` | `Promise`<`boolean`\> `Const` expectPriorInput(`selector`, `expectedText`): (`app`: `Application`) => `Promise`<`Application`\> | Name | Type | | :- | :- | | `selector` | `string` | | `expectedText` | `string` | `fn` (`app`): `Promise`<`Application`\> | Name | Type | | :- | : | | `app` | `Application` | `Promise`<`Application`\> `Const` getTextContent(`app`, `selector`): `Promise`<`string`\> | Name | Type | | : | : | | `app` | `Application` | | `selector` | `string` | `Promise`<`string`\> `Const` grabFocus(`app`, `currentPromptBlock?`, `currentPrompt?`): `Promise`<`boolean` \| `void`\> grab focus for the repl | Name | Type | | :- | : | | `app` | `Application` | | `currentPromptBlock` | `string` | | `currentPrompt` | `string` | `Promise`<`boolean` \| `void`\> lastBlock(`app`, `splitIndex?`, `N?`, `inNotebook?`): `Promise`<\> Index of last executed block | Name | Type | Default value | | :-- | : | : | | `app` | `Application` | `undefined` | | `splitIndex` | `number` | `1` | | `N` | `number` | `1` | | `inNotebook` | `boolean` | `false` | `Promise`<\> `Const` makeCustom(`selector`, `expect`, `exact?`): `Object` wait for the result of a cli.command | Name | Type | | : | :-- | | `selector` | `string` | | `expect` | `string` | | `exact?` | `boolean` | `Object` | Name | Type | | : | :-- | | `exact` | `boolean` | | `expect` | `string` | | `selector` | `string` | nOfCurrentBlock(`app`, `splitIndex?`): `Promise`<`number`\> | Name | Type | Default value | | :-- | : | : | | `app` | `Application` | `undefined` | | `splitIndex` | `number` | `1` | `Promise`<`number`\> the "N" of the current block `Const` paste(`cmd`, `app`, `nLines?`): `Promise`<{ `app`: `Application` = app; `count`: `number` }\> | Name | Type | Default value | | :- | : | : | | `cmd` | `string` | `undefined` | | `app` | `Application` | `undefined` | | `nLines` | `number` | `1` | `Promise`<{ `app`: `Application` = app; `count`: `number` }\> `Const` waitForRepl(`app`): `Promise`<`Application`\> wait for the repl to be active | Name | Type | | :- | : | | `app` | `Application` | `Promise`<`Application`\> `Const` waitForSession(`ctx`, `noProxySessionWait?`): `Promise`<`void`\> Wait, if needed, for a proxy session | Name | Type | Default value | | :- | :-- | : | | `ctx` | | `undefined` | | `noProxySessionWait`