code: function toChoices(tree, lines) {
        lines = lines || utils.archy(tree).split('\n');
  
        var item = {};
        item.name = (tree.metadata.type === 'app' ? '\x1b[2D  ' : '') + lines.shift();
        // item.disabled = !!(tree.metadata.type === 'app');
        item.value = tree.metadata.value;
        item.short = tree.metadata.short;
  
        var list = [item];
        if (tree.nodes && tree.nodes.length) {
          tree.nodes.forEach(function(node) {
            list = list.concat(toChoices(node, lines));
          });
        }
        return list;
      }
docs: Transform tree into a list of choices.
  Prefix choices with special characters based on their position in the tree.
  Color lines based on their type (app or task)
  
  @param  {Object} `tree` Tree object generated from buildTree function.
  @return {Array} List of choices to pass to questions