Skip to content

Commit f59873a

Browse files
committed
Use values directly from hook payload in logger
1 parent 41745df commit f59873a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/cli/src/plugins/logger.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,17 @@ export function logger({
187187
commands: state.commandQueue.map((cmd) => cmd.commandName).join(' → '),
188188
});
189189
}
190-
function beforeCommand({ state, data }: HookPayload<'beforeCommand'>) {
190+
function beforeCommand({
191+
state,
192+
command,
193+
data,
194+
params,
195+
}: HookPayload<'beforeCommand'>) {
191196
if (!state.command) return;
192197
log(state.client, 'Executing command', {
193-
name: state.command.commandName,
194-
params: state.params,
198+
name: command.commandName,
195199
data,
200+
params,
196201
step: `${state.i + 1}/${state.commandQueue.length}`,
197202
});
198203
}

0 commit comments

Comments
 (0)