import React from 'react' ; import { render } from 'ink' ; import meow from 'meow' ; import mls from 'multilines' ; import updateNotifier from 'update-notifier' ; import Emma from '.' ; const cli = meow ( mls `
  | Usage
  |  $ emma
  |
  | Controls:
  |  - space: toggle dependencies
  |  - up/down: scroll the list
  |  - right/left: hide or show details
  |  - double right: show repo
  ` ) ; /**
 * Make sure that user is on the latest version
 * avaiable in case they have connection to NPM.
 */ const notifier = updateNotifier ( cli ) ; notifier . notify ( ) ; if ( notifier . update ) { process . exit ( 0 ) ; } render ( < Emma />, { exitOnCtrlC: false });