Commit 88465353 authored by nontawat kanboon's avatar nontawat kanboon

Delete index.js

parent 5a767e96
#!/usr/bin/env node
const program = require('commander');
const {addContact.getContact}=require('./logic')
// Require logic.js file and extract controller functions using JS destructuring assignment
program
.version('0.0.1')
.description('Contact management system');
program
.command('programmer')
.alias('p')
.description('ดูข้อมูลโปรแกรมเมอร์')
.action(() => {
//addContact({firstname, lastname, phone, email});
console.log('programmer is manymena');
});
program
.command('addContact <firstame> <lastname> <phone> <email>')
.alias('a')
.description('Add a contact')
.action((firstname, lastname, phone, email) => {
addContact({ firstname, lastname, phone, email });
});
console.log(process.argv);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment