How to use the @prisma/cli.HelpError function in @prisma/cli

To help you get started, weโ€™ve selected a few @prisma/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github prisma / lift / src / cli / commands / LiftCommand.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${LiftCommand.help}`)
    }
    return LiftCommand.help
  }
}
github prisma / lift / src / cli / commands / LiftTmpPrepare.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${LiftTmpPrepare.help}`)
    }
    return LiftTmpPrepare.help
  }
}
github prisma / lift / src / cli / commands / StudioCommand.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${StudioCommand.help}`)
    }

    return StudioCommand.help
  }
}
github prisma / lift / src / cli / commands / Converter.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${Converter.help}`)
    }
    return Converter.help
  }
}
github prisma / lift / src / cli / commands / LiftWatch.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${LiftWatch.help}`)
    }
    return LiftWatch.help
  }
}
github prisma / lift / src / cli / commands / LiftSave.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${LiftSave.help}`)
    }
    return LiftSave.help
  }
}
github prisma / prisma2 / cli / prisma2 / src / CLI.ts View on Github external
private help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${CLI.help}`)
    }
    return CLI.help
  }
github prisma / photonjs / packages / photon / src / Converter.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${Converter.help}`)
    }
    return Converter.help
  }
}
github prisma / prisma2 / cli / introspection / src / commands / Introspect.ts View on Github external
public help(error?: string): string | HelpError {
    if (error) {
      return new HelpError(`\n${chalk.bold.red(`!`)} ${error}\n${Introspect.help}`)
    }
    return Introspect.help
  }
}

@prisma/cli

Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.

Apache-2.0
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis