Constructor
# new BaseCLI()
This class provides a foundation for building CLIs in the Fabric Weaver project. It sets up a Commander program with basic configuration and logging.
Base class for creating command-line interfaces using Commander
Example
class MyCLI extends BaseCLI {
constructor() {
super("my-cli", "My CLI description");
this.setupCommands();
}
private setupCommands() {
this.program
.command("hello")
.description("Say hello")
.action(() => console.log("Hello, world!"));
}
}
const cli = new MyCLI();
cli.run();