mirror of
https://github.com/sern-handler/cli
synced 2026-06-28 02:32:20 +00:00
feat: bump all files to GitHub 🎉
This commit is contained in:
19
src/index.js
Normal file
19
src/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
const yargs = require('yargs');
|
||||
|
||||
yargs.scriptName('sern');
|
||||
yargs.command({
|
||||
command: 'init',
|
||||
describe: 'Initialize a new project',
|
||||
builder: {
|
||||
name: {
|
||||
describe: 'Project name',
|
||||
demandOption: true,
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
handler: function (argv) {
|
||||
console.log('Initializing a new project...');
|
||||
console.log('Project name: ' + argv.name);
|
||||
},
|
||||
}).argv;
|
||||
Reference in New Issue
Block a user