|
return () => { |
|
console.log('default command'); // 4 |
|
}; |
Passing in a function that returns a function does nothing here, it seems. Just passing in the function you want to run works though.
Example:
cli.action(() => {
console.log("default command");
});
soly/README.md
Lines 104 to 106 in 0727e81
Passing in a function that returns a function does nothing here, it seems. Just passing in the function you want to run works though.
Example: