sinotron
Version:
Simple framework for Typescript Electron projects
18 lines (17 loc) • 549 B
JavaScript
import { CliHelper } from './cli.helper.js';
import { SetupCommand } from './setup-command/SetupCommand.js';
import { ProjectCommand } from './project-command/ProjectCommand.js';
import { ApiCommand } from './api-command/ApiCommand.js';
async function main() {
const app = CliHelper.program('sinotron', 'Cli for sinotron');
SetupCommand.init(app);
ProjectCommand.init(app);
await ApiCommand.init(app);
app.parse();
}
main()
.then(() => { })
.catch((err) => {
console.error('[ERR_MAIN]', err);
});