Skip to content

dnlek/cmdcli-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmdcli-example

Sample project built using cmdcli

How to run

  npm install
  ./bin/test

What's inside?

Simple command which performs operations on two numbers

try to run it without any value:

  ~/W/d/cmdcli-example ❯❯❯ ./bin/test test                                                                                                                                                                                                                                    master
  ? Provide Give me first number 2
  ? Provide Give me second number 2
  ? Select Give me id (Use arrow keys)
  ❯ sum
    minus
    multiply

or with any number of parameters...

Simple login command. Hides your password.

  ~/W/d/cmdcli-example ❯❯❯ ./bin/test login                                                                                                                                                                                                                                   master
  ? Provide username test
  ? Provide password ****

Also this example demonstrates asynchronous operations.

About

Sample project built using cmdcli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published