item(desc, prefix = '') {
    return item => {
      const name = typeof item === 'string' ? item : item.name;
      desc = typeof item !== 'string' && item.description ? item.description : desc;
      desc = desc.replaceAll(/^#?\s*/g, '');
      desc = desc.replaceAll(':', '->');
      desc = desc.replaceAll('\'', ' ');

      return {
        name: prefix + name,
        description: desc,
      };
    };
  }
Helper to format completion results into { name, description } objects

@param {String}   data   Environment object as parsed by tabtab
@param {Function} done   Callback to invoke with completion results