bin/extractFromArgs.js
function _executeCommands (showDetails, cmds) {

			if (cmds.length) {

				const cmd = cmds.shift();

				execute(showDetails, cmd.cmd, cmd.options).then((...data) => {

					if (data.length && undefined !== data[0]) {

						if (1 === data.length && "boolean" === typeof data[0]) {

							if (showDetails) {
								(0, console).log(getFormatedTime(), "=>", data[0]);
							}
							else {
								(0, console).log(data[0] ? "1" : "0");
							}

						}
						else if (showDetails) {
							(0, console).log(getFormatedTime(), "=>", ...data);
						}
						else {
							(0, console).log(...data);
						}

					}

					_executeCommands(showDetails, cmds);

				}).catch((err) => {
					(0, console).error(err);
					(0, process).exitCode = 1;
				});

			}

		}
function _executeCommands (showDetails, cmds) {

			if (cmds.length) {

				const cmd = cmds.shift();

				execute(showDetails, cmd.cmd, cmd.options).then((...data) => {

					if (data.length && undefined !== data[0]) {

						if (1 === data.length && "boolean" === typeof data[0]) {

							if (showDetails) {
								(0, console).log(getFormatedTime(), "=>", data[0]);
							}
							else {
								(0, console).log(data[0] ? "1" : "0");
							}

						}
						else if (showDetails) {
							(0, console).log(getFormatedTime(), "=>", ...data);
						}
						else {
							(0, console).log(...data);
						}

					}

					_executeCommands(showDetails, cmds);

				}).catch((err) => {
					(0, console).error(err);
					(0, process).exitCode = 1;
				});

			}

		}
function _executeCommands ( showDetails , cmds ) { if ( cmds . length ) { const cmd = cmds . shift ( ) ; execute ( showDetails , cmd . cmd , cmd . options ) . then ( ( ... data ) => { if ( data . length && undefined !== data [ 0 ] ) { if ( 1 === data . length && "boolean" === typeof data [ 0 ] ) { if ( showDetails ) { ( 0 , console ) . log ( getFormatedTime ( ) , "=>" , data [ 0 ] ) ; } else { ( 0 , console ) . log ( data [ 0 ] ? "1" : "0" ) ; } } else if ( showDetails ) { ( 0 , console ) . log ( getFormatedTime ( ) , "=>" , ... data ) ; } else { ( 0 , console ) . log ( ... data ) ; } } _executeCommands ( showDetails , cmds ) ; } ) . catch ( ( err ) => { ( 0 , console ) . error ( err ) ; ( 0 , process ) . exitCode = 1 ; } ) ; } }
methods 
Synchronously execute commands
@param {boolean} showDetails : show execution's details in console
@param {Array} cmds : all commands to execute
@returns {void}
methods Synchronously execute commands