CLI Wrap with Spawn and Programmatic Access
Oclif is a Nodejs command line generator tool that grants you the ability to conveniently create a CLI with the following
npx oclif single mycoollistofthings
Supposedly you have your own custom CLI, but you wish to delegate some of these commands to an existing CLI tool. You are then wrapping another CLI command for the intent of adding additional functionality with mycoollistofthings
. Here is the new command's mapping behavior of the ls -r
command.
npx mycoollistofthings -r