src/utils/haulProgressBar.js
function createLabel(platform: string) {
  if (labelOptions[platform]) {
    const { color, label } = labelOptions[platform];
    return `${chalk.bold[color](label)}`.padEnd(30);
  }
  return `${chalk.bold.magenta(platform)}`.padEnd(30);
}
function createLabel(platform: string) {
  if (labelOptions[platform]) {
    const { color, label } = labelOptions[platform];
    return `${chalk.bold[color](label)}`.padEnd(30);
  }
  return `${chalk.bold.magenta(platform)}`.padEnd(30);
}
function createLabel ( platform : string ) { if ( labelOptions [ platform ] ) { const { color , label } = labelOptions [ platform ] ; return ` ${ chalk . bold [ color ] ( label ) } ` . padEnd ( 30 ) ; } return ` ${ chalk . bold . magenta ( platform ) } ` . padEnd ( 30 ) ; }
/*
Create label based on passed platform
We use `labelOptions` to customize know platforms
If platform is not know, returns default styles
/ * Create label based on passed platform We use labelOptions to customize know platforms If platform is not know returns default styles