Skip to content

Commit

Permalink
update commands flags
Browse files Browse the repository at this point in the history
  • Loading branch information
beerose committed Dec 3, 2021
1 parent 5e81742 commit e020594
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/cli/src/commands/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ ${require("chalk").bold("seed")} Generates seeded data in database via Prisma.
char: "f",
description: `Path to the seeds file, relative to the project root folder. Examples: db/seeds, db/seeds.ts, db/seeds/index.ts, db/my-seeds`,
}),
env: flags.string({
char: "e",
description: "Set app environment name",
}),
}

static strict = false
Expand Down
9 changes: 8 additions & 1 deletion packages/cli/src/commands/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Command} from "@oclif/command"
import {Command, flags} from "@oclif/command"
import {Readable} from "stream"

const getPrismaBin = async () => {
Expand Down Expand Up @@ -55,6 +55,13 @@ export class PrismaCommand extends Command {
static description = "Loads env variables then proxies all args to Prisma CLI"
static aliases = ["p"]

static flags = {
env: flags.string({
char: "e",
description: "Set app environment name",
}),
}

static strict = false

async run() {
Expand Down

0 comments on commit e020594

Please sign in to comment.