split the main function into a function for the cli and another for api
The idea is to simplify the usage of the main function in an external code. Otherwise the user need to use main.callback
.
Edited by Mickael Savinaud
The idea is to simplify the usage of the main function in an external code. Otherwise the user need to use main.callback
.