@shopify/cli-kit
Preparing search index...
node/command-events
renderCommandEventAsJson
Function renderCommandEventAsJson
renderCommandEventAsJson
(
event
:
|
{
code
?:
string
;
level
:
"info"
|
"error"
|
"debug"
|
"warning"
;
message
:
string
;
timestamp
:
string
;
type
:
"diagnostic"
;
}
|
{
current
?:
number
;
message
?:
string
;
operation
:
string
;
status
:
"started"
|
"updated"
|
"completed"
;
timestamp
:
string
;
total
?:
number
;
type
:
"progress"
;
}
,
)
:
void
Renders a command side event as compact JSON to stderr.
Parameters
event
:
|
{
code
?:
string
;
level
:
"info"
|
"error"
|
"debug"
|
"warning"
;
message
:
string
;
timestamp
:
string
;
type
:
"diagnostic"
;
}
|
{
current
?:
number
;
message
?:
string
;
operation
:
string
;
status
:
"started"
|
"updated"
|
"completed"
;
timestamp
:
string
;
total
?:
number
;
type
:
"progress"
;
}
The event to render.
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@shopify/cli-kit
Loading...
Renders a command side event as compact JSON to stderr.