Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
export interface Printer {
  print(text: string): void
  printError(text: string): void
  printHeading(text: string): void
  formatDim(text: string): string
  formatImportant(text: string): string
  getGenericErrorMessage(): string
}

export function createDefaultPrinter(): Printer {
  return {
    print: text => console.log(text),
    printError: text => console.error(text),
    printHeading: text => console.log(text),
    formatDim: text => text,
    formatImportant: text => text,
    getGenericErrorMessage: () => 'Failed to run command!',
  }
}