Scriptails
Build simple CLIs in minutes ⏱️
✅ Easy to Use
The design of the scriptails api was build to have a quick, fluid and simple understanding.
🔎 Focus on What Matters
Scriptails allows you to really focus on building your CLIs.
⚡ Ready to go
Develop a fully functional CLI to get started quickly.
Simple like writing tests
command('build', (c) => {
c.aliases(['b']);
c.description('build my android project');
c.option(['--debug'], null, 'build debug mode', false);
c.onAction((ctx) => {
const debug = ctx.getOption('debug').toBoolean();
ctx.logWithLabel('info', "Starting build proccess");
if(debug) {
ctx.childProcess.shellExec('my android build debug command')
} else {
ctx.childProcess.shellExec('my android build command')
}
});
});