Skip to content

Command Line Interface (CLI) to simulate an interaction of an ATM with a retail bank

License

Notifications You must be signed in to change notification settings

sandhika/atm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATM-CLI

Command Line Interface (CLI) to simulate an interaction of an ATM with a retail bank

oclif Version CircleCI Downloads/week License

Usage

$ cd atm-cli

$ npm install -g atm-cli
or
$ npm install -g .


$ atm-cli COMMAND
running command...
$ atm-cli (--version)
atm-cli/0.0.1 linux-x64 node-v14.15.0
$ atm-cli --help [COMMAND]
USAGE
  $ atm-cli COMMAND
...

Commands

atm-cli deposit [AMOUNT]

deposit [amount] - Deposits this amount to the logged in customer

USAGE
  $ atm-cli deposit [AMOUNT]

DESCRIPTION
  `deposit [amount]` - Deposits this amount to the logged in customer

See code: dist/commands/deposit.ts

atm-cli help [COMMAND]

Display help for atm-cli.

USAGE
  $ atm-cli help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for atm-cli.

See code: @oclif/plugin-help

atm-cli login NAME

login [name] - Logs in as this customer and creates the customer if not exist

USAGE
  $ atm-cli login [NAME] [-f <value>]

ARGUMENTS
  NAME  Customer name for login

FLAGS
  -f, --from=<value>  Whom is saying hello

DESCRIPTION
  `login [name]` - Logs in as this customer and creates the customer if not exist

See code: dist/commands/login.ts

atm-cli logout [FILE]

Logs out of the current customer

USAGE
  $ atm-cli logout [FILE]

DESCRIPTION
  Logs out of the current customer

See code: dist/commands/logout.ts

atm-cli plugins

List installed plugins.

USAGE
  $ atm-cli plugins [--core]

FLAGS
  --core  Show core plugins.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ atm-cli plugins

See code: @oclif/plugin-plugins

atm-cli plugins:inspect PLUGIN...

Displays installation properties of a plugin.

USAGE
  $ atm-cli plugins:inspect PLUGIN...

ARGUMENTS
  PLUGIN  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ atm-cli plugins:inspect myplugin

atm-cli plugins:install PLUGIN...

Installs a plugin into the CLI.

USAGE
  $ atm-cli plugins:install PLUGIN...

ARGUMENTS
  PLUGIN  Plugin to install.

FLAGS
  -f, --force    Run yarn install with force flag.
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Installs a plugin into the CLI.

  Can be installed from npm or a git url.

  Installation of a user-installed plugin will override a core plugin.

  e.g. If you have a core plugin that has a 'hello' command, installing a user-installed plugin with a 'hello' command
  will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
  the CLI without the need to patch and update the whole CLI.

ALIASES
  $ atm-cli plugins add

EXAMPLES
  $ atm-cli plugins:install myplugin

  $ atm-cli plugins:install https://github.com/someuser/someplugin

  $ atm-cli plugins:install someuser/someplugin

atm-cli plugins:link PLUGIN

Links a plugin into the CLI for development.

USAGE
  $ atm-cli plugins:link PLUGIN

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.

EXAMPLES
  $ atm-cli plugins:link myplugin

atm-cli plugins:uninstall PLUGIN...

Removes a plugin from the CLI.

USAGE
  $ atm-cli plugins:uninstall PLUGIN...

ARGUMENTS
  PLUGIN  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ atm-cli plugins unlink
  $ atm-cli plugins remove

atm-cli plugins update

Update installed plugins.

USAGE
  $ atm-cli plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.

atm-cli status [NAME]

describe the command here

USAGE
  $ atm-cli status [NAME]

DESCRIPTION
  describe the command here

See code: dist/commands/status.ts

atm-cli transfer [TARGET] [AMOUNT]

transfer [target] [amount] - Transfers this amount from the logged in customer to the target customer

USAGE
  $ atm-cli transfer [TARGET] [AMOUNT]

DESCRIPTION
  `transfer [target] [amount]` - Transfers this amount from the logged in customer to the target customer

See code: dist/commands/transfer.ts

atm-cli withdraw [AMOUNT]

withdraw [amount] - Withdraws this amount from the logged in customer

USAGE
  $ atm-cli withdraw [AMOUNT]

DESCRIPTION
  `withdraw [amount]` - Withdraws this amount from the logged in customer

See code: dist/commands/withdraw.ts

atm-cli login

$ login Alice

Hello, [NAME]! Your balance is $[amount]

USAGE
  $ atm-cli login [NAME]

ARGUMENTS
  NAME  Person name for login

DESCRIPTION
  Logs in as this customer and creates the customer if not exist

EXAMPLES
  $ atm-cli login Alice
  Hello, Alice!
  Your balance is $0

atm-cli logout

$ logout

Goodbye, [NAME]!

USAGE
  $ atm-cli logout

ARGUMENTS
  -

DESCRIPTION
  Logs in as this customer and creates the customer if not exist

EXAMPLES
  $ atm-cli logout
  Goodbye, Alice!

atm-cli deposit

$ deposit [amount]

Your balance is $[amount]

USAGE
  $ atm-cli deposit [amount]

ARGUMENTS
  AMOUNT

DESCRIPTION
  Deposits this amount to the logged in customer

EXAMPLES
  $ atm-cli deposit 80
  Your balance is $80

atm-cli withdraw

$ withdraw [amount]

Your balance is $[amount]

USAGE
  $ atm-cli withdraw [amount]

ARGUMENTS
  AMOUNT

DESCRIPTION
  Withdraws this amount from the logged in customer

EXAMPLES
  $ atm-cli withdraw 80
  Your balance is $0

atm-cli transfer

$ transfer [amount] [name]

Transferred $[amount] to [amount] Hello, [amount]! your balance is $[amount]

USAGE
  $ atm-cli withdraw [amount]

ARGUMENTS
  AMOUNT  value for transfer
  NAME    name of customer for transfer

DESCRIPTION
  Transfers this amount from the logged in customer to the target customer

EXAMPLES
  $ atm-cli transfer 80 Alice
  Transferred $50 to Alice
  Hello, Alice!
  your balance is $30

atm-cli help [COMMAND]

Display help for atm-cli.

USAGE
  $ atm-cli help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for atm-cli.

About

Command Line Interface (CLI) to simulate an interaction of an ATM with a retail bank

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published