code: function getColorFnAndIconByType (type) {
    let colorFn, icon
  
    switch (type) {
      case 'error':
        colorFn = chalk.red
        icon = figures.cross
        break
      case 'warn':
        colorFn = chalk.yellow
        icon = figures.warning
        break
      case 'success':
        colorFn = chalk.green
        icon = figures.tick
        break
      default:
        colorFn = chalk.blue
        icon = figures.info
        break
    }
  
    return { colorFn, icon }
  }
docs: @typedef ColorFnAndIcon
  @property {function} colorFn 着色函数
  @property {string} icon 图标
   
  根据 type 获取 colorFn 和 Icon
  
  @param {string} type 日志类型
  @returns {ColorFnAndIcon} colorFn and icon