@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
28 lines (27 loc) • 1.26 kB
TypeScript
import { type PartialWithUndefined } from '@augment-vir/common';
import { type ShellOutput } from '../augments/terminal/shell.js';
/**
* All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
*
* @category Prisma : Node : Util
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare const prismaCommandsThatSupportNoHints: string[];
/**
* Directly run a Prisma command.
*
* @category Prisma : Node : Util
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function runPrismaCommand({ command, ignoreExitCode, hideLogs, }: {
command: string;
} & PartialWithUndefined<{
/** If `true`, prevents errors from being thrown if this command exits with a non-0 status. */
ignoreExitCode: boolean;
hideLogs: boolean;
}>,
/** Set to `undefined` to omit the `--schema` flag. */
schemaFilePath: string | undefined, env?: Record<string, string> | undefined): Promise<Readonly<ShellOutput>>;
export declare function verifyOutput(schemaFilePath: string, shellOutput: Readonly<ShellOutput>, ignoreExitCode: boolean): Readonly<ShellOutput>;