Coline — JavaScript Command Line Interface

Coline provides a slim and reusable framework to define command line applications with a top-level interface and several question-answer dialogs. It is written in Node.js and published as open source on Github respository and NPM.

Mystery Lunch

  • Define the name and time of a lunch event
  • Add people to the lunch event
  • Schedule the lunch by randomly putting people into groups

Technical Approach

  1. Writing to stdout (with a customizable prompt) and reading from stdin
  2. Defining a user interface that is loaded when the application starts to tell the user about the basic commands, and which provides key => command bindings that are invoked when the user presses the key
  3. Defining dialogs that ask questions, validate the input, and allow to move back or exit the dialog

--

--

IT Project Manager & Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store