/commander

Primary LanguageJavaScript

COMMANDER

Commander is a command line interface for transactional storing of data while the app is running. It's just a toy to practice running node for command line apps.

Variables will be stored with case sensitive key value pairs in the following syntax:

  • "COMMAND key and/or value"

Commands:

  • BEGIN = Opens a transaction
  • COMMIT = Commits current code within an open transaction
  • COUNT = Returns number over occurrences of a given value, and corresponding keys
  • DELETE = Removes key value pair associated with given key
  • GET = Retrieves value of given key
  • HELP = Shows list of commands
  • ROLLBACK = Discards changes within an open transaction, then closes transaction
  • SET = Sets value for given key
  • UPDATE = Updates an existing key