Message
Resp
Message
Command
NATIVE_
NAME
logger
editor
firstinpath
get
Best
Editor
get
Native
Messenger
Version
get
Profile
Dir
inpath
mkdir
read
run
send
Native
Msg
temp
write
Index
Interfaces
Message
Resp
Type aliases
Message
Command
Variables
NATIVE_
NAME
logger
Functions
editor
firstinpath
get
Best
Editor
get
Native
Messenger
Version
get
Profile
Dir
inpath
mkdir
read
run
send
Native
Msg
temp
write
Type aliases
Message
Command
Message
Command
:
"version"
|
"run"
|
"read"
|
"write"
|
"temp"
|
"mkdir"
Variables
NATIVE_
NAME
NATIVE_
NAME
:
"tridactyl"
= "tridactyl"
logger
logger
:
Logger
= new Logger("native")
Functions
editor
editor
(
file
:
string
, content
?:
string
)
:
Promise
<
MessageResp
>
Parameters
file:
string
Optional
content:
string
Returns
Promise
<
MessageResp
>
firstinpath
firstinpath
(
cmdarray
:
any
)
:
Promise
<
any
>
Parameters
cmdarray:
any
Returns
Promise
<
any
>
get
Best
Editor
get
Best
Editor
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
get
Native
Messenger
Version
get
Native
Messenger
Version
(
quiet
?:
boolean
)
:
Promise
<
number
>
Parameters
Default value
quiet:
boolean
= false
Returns
Promise
<
number
>
get
Profile
Dir
get
Profile
Dir
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
inpath
inpath
(
cmd
:
any
)
:
Promise
<
boolean
>
Parameters
cmd:
any
Returns
Promise
<
boolean
>
mkdir
mkdir
(
dir
:
string
, exist_ok
:
boolean
)
:
Promise
<
MessageResp
>
Parameters
dir:
string
exist_ok:
boolean
Returns
Promise
<
MessageResp
>
read
read
(
file
:
string
)
:
Promise
<
MessageResp
>
Parameters
file:
string
Returns
Promise
<
MessageResp
>
run
run
(
command
:
string
)
:
Promise
<
MessageResp
>
Parameters
command:
string
Returns
Promise
<
MessageResp
>
send
Native
Msg
send
Native
Msg
(
cmd
:
MessageCommand
, opts
:
object
, quiet
?:
boolean
)
:
Promise
<
MessageResp
>
Posts using the one-time message API; native is killed after message returns
Parameters
cmd:
MessageCommand
opts:
object
Default value
quiet:
boolean
= false
Returns
Promise
<
MessageResp
>
temp
temp
(
content
:
string
)
:
Promise
<
MessageResp
>
Parameters
content:
string
Returns
Promise
<
MessageResp
>
write
write
(
file
:
string
, content
:
string
)
:
Promise
<
MessageResp
>
Parameters
file:
string
content:
string
Returns
Promise
<
MessageResp
>
Posts using the one-time message API; native is killed after message returns