Skip to content

Commit 57316df

Browse files
authored
chore: remove CLI config (#999)
1 parent bac3683 commit 57316df

File tree

3 files changed

+1
-68
lines changed

3 files changed

+1
-68
lines changed

packages/schema/src/cli/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export function createProgram() {
8181
`schema file (with extension ${schemaExtensions}). Defaults to "schema.zmodel" unless specified in package.json.`
8282
);
8383

84-
const configOption = new Option('-c, --config [file]', 'config file').hideHelp();
8584
const pmOption = new Option('-p, --package-manager <pm>', 'package manager to use').choices([
8685
'npm',
8786
'yarn',
@@ -99,7 +98,6 @@ export function createProgram() {
9998
program
10099
.command('init')
101100
.description('Initialize an existing project for ZenStack.')
102-
.addOption(configOption)
103101
.addOption(pmOption)
104102
.addOption(new Option('--prisma <file>', 'location of Prisma schema file to bootstrap from'))
105103
.addOption(new Option('--tag <tag>', 'the NPM package tag to use when installing dependencies'))

packages/schema/src/plugins/prisma/schema-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class PrismaSchemaGenerator {
142142
if (options.format === true) {
143143
try {
144144
// run 'prisma format'
145-
await execSync(`npx prisma format --schema ${outFile}`);
145+
await execSync(`npx prisma format --schema ${outFile}`, { stdio: 'ignore' });
146146
} catch {
147147
warnings.push(`Failed to format Prisma schema file`);
148148
}

tests/integration/tests/cli/config.test.ts

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)