defaultCompleter = completions => line => {
  const hits = completions.filter(c => c.startsWith(line))
  // show all completions if none found
  const arr = hits.length ? hits : completions
  return [arr, line]
}
A typical default completer that can be used, for convenience.

@ignore