Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
nodejs-60-2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nontawat kanboon
nodejs-60-2
Commits
88465353
Commit
88465353
authored
Feb 07, 2018
by
nontawat kanboon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete index.js
parent
5a767e96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
index.js
week04/contact-manager/index.js
+0
-29
No files found.
week04/contact-manager/index.js
deleted
100644 → 0
View file @
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment