https://github.com/danretegan/node-hw-01-cli-application
CLI application /Yargs
https://github.com/danretegan/node-hw-01-cli-application
cli cli-app node nodejs yargs
Last synced: 3 months ago
JSON representation
CLI application /Yargs
- Host: GitHub
- URL: https://github.com/danretegan/node-hw-01-cli-application
- Owner: danretegan
- Created: 2024-04-27T04:42:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T10:11:19.000Z (about 2 years ago)
- Last Synced: 2025-01-03T00:34:13.916Z (over 1 year ago)
- Topics: cli, cli-app, node, nodejs, yargs
- Language: JavaScript
- Homepage:
- Size: 515 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Command Line Interface (CLI) application
## Yargs
- start:
`npm run start`
### Actions:
- list:
`node index.js list`
- get element by id:
`node index.js get id`
- add:
`node index.js add "Mango Two" mango@gmail.com 322-22-22`
- remove:
`node index.js remove id`
### Errors:
- wrong action:
- wrong path:
- Unknown argument:
- Not enough non-option arguments: got 2, need at least 3:
### Help:
`node index.js help`