Skip to content

Returning a function in cli.action does nothing #4

Description

@brandonpittman

soly/README.md

Lines 104 to 106 in 0727e81

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");
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions