frontend
Preparing search index...
hooks/useCliGame
useCliGame
Function useCliGame
useCliGame
<
TState
,
TArgs
extends
unknown
[]
>
(
exec
:
(
...
args
:
TArgs
)
=>
Promise
<
void
>
,
config
:
CliGameConfig
<
TState
,
TArgs
>
,
state
:
TState
|
null
,
callbacks
:
CliLogCallbacks
,
)
:
{
handleCommand
:
(
input
:
string
)
=>
Promise
<
void
>
}
Hook that wires CLI command input to a game API exec function.
Type Parameters
TState
TArgs
extends
unknown
[]
Parameters
exec
:
(
...
args
:
TArgs
)
=>
Promise
<
void
>
config
:
CliGameConfig
<
TState
,
TArgs
>
state
:
TState
|
null
callbacks
:
CliLogCallbacks
Returns
{
handleCommand
:
(
input
:
string
)
=>
Promise
<
void
>
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
frontend
Loading...
Hook that wires CLI command input to a game API exec function.