From 7749b04ae5869a8b866b339fb98503ec72fdab43 Mon Sep 17 00:00:00 2001 From: Ivo Yankov Date: Wed, 2 Oct 2024 16:16:48 +0300 Subject: [PATCH] fix: Direct calling of node stop and start commands (#636) Signed-off-by: Ivo Yankov --- src/commands/node.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/commands/node.mjs b/src/commands/node.mjs index 681da38f2..c8747a1a2 100644 --- a/src/commands/node.mjs +++ b/src/commands/node.mjs @@ -2386,9 +2386,7 @@ export class NodeCommand extends BaseCommand { .command({ command: 'start', desc: 'Start a node', - builder: y => flags.setCommandFlags(y, - NodeCommand.START_FLAGS_LIST - ), + builder: y => flags.setCommandFlags(y, ...NodeCommand.START_FLAGS_LIST), handler: argv => { nodeCmd.logger.debug('==== Running \'node start\' ===') nodeCmd.logger.debug(argv) @@ -2405,9 +2403,7 @@ export class NodeCommand extends BaseCommand { .command({ command: 'stop', desc: 'Stop a node', - builder: y => flags.setCommandFlags(y, - NodeCommand.STOP_FLAGS_LIST - ), + builder: y => flags.setCommandFlags(y, ...NodeCommand.STOP_FLAGS_LIST), handler: argv => { nodeCmd.logger.debug('==== Running \'node stop\' ===') nodeCmd.logger.debug(argv)