Closed arcanis closed 2 years ago
Clipanion is currently a little annoying to use with single-command scripts because of its boilerplate. The new runExit API lets you write small CLIs even more easily:
runExit
import {Command, runExit} from 'clipanion'; runExit(class extends Command { async execute() { // ... } });
Helpers like this should probably not be attached to the Cli class so they can be tree shaken when not in use.
Cli
But it's nice for readability 😢
Clipanion is currently a little annoying to use with single-command scripts because of its boilerplate. The new
runExit
API lets you write small CLIs even more easily: