File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
packages/commandkit/src/app/commands Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -113,15 +113,18 @@ export class AppCommandRunner {
113
113
`[${ marker } - ${ time } ] Error executing command: ${ error . stack || error } ` ,
114
114
) ;
115
115
116
+ const commandName =
117
+ prepared . command ?. data ?. command ?. name ??
118
+ prepared . command . command . name ;
119
+
116
120
await analytics . track ( {
117
121
name : AnalyticsEvents . COMMAND_EXECUTION ,
118
- id :
119
- prepared . command ?. data ?. command ?. name ??
120
- prepared . command . command . name ,
122
+ id : commandName ,
121
123
data : {
122
124
error : true ,
123
125
executionTime : env . getExecutionTime ( ) . toFixed ( 2 ) ,
124
126
type : executionMode ,
127
+ command : commandName ,
125
128
} ,
126
129
} ) ;
127
130
@@ -132,15 +135,18 @@ export class AppCommandRunner {
132
135
`[${ marker } - ${ time } ] Command executed successfully` ,
133
136
) ;
134
137
138
+ const commandName =
139
+ prepared . command ?. data ?. command ?. name ??
140
+ prepared . command . command . name ;
141
+
135
142
await analytics . track ( {
136
143
name : AnalyticsEvents . COMMAND_EXECUTION ,
137
- id :
138
- prepared . command ?. data ?. command ?. name ??
139
- prepared . command . command . name ,
144
+ id : commandName ,
140
145
data : {
141
146
error : false ,
142
147
executionTime : env . getExecutionTime ( ) . toFixed ( 2 ) ,
143
148
type : executionMode ,
149
+ command : commandName ,
144
150
} ,
145
151
} ) ;
146
152
} ) ;
You can’t perform that action at this time.
0 commit comments