Skip to content

Commit

Permalink
feat(cli): remove generate cmd (#495)
Browse files Browse the repository at this point in the history
closes #493

- Unclear use-case
- Leaks low-level details to the user
- Exotic/Esoteric feature given the same standing as something used 99.9999% more e.g. `nexus dev` and `nexus build`
- Requires internal maintenance
- Lacks test coverage today
- If user needs it, we'd like to know about the use-case actually
  • Loading branch information
Jason Kuhrt authored Mar 17, 2020
1 parent 2197f83 commit 2abd73d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
28 changes: 0 additions & 28 deletions src/cli/commands/generate.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/cli/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as Create from './create'
import * as Db from './db'

export { Create, Db }
export { Build } from './build'
export { Dev } from './dev'
export { Doctor } from './doctor'
export { Generate } from './generate'
export { __Default } from './__default'
export { Create, Db }
1 change: 0 additions & 1 deletion src/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async function main(): Promise<number> {
const cli = new CLI({
dev: new Commands.Dev(),
build: new Commands.Build(),
generate: new Commands.Generate(),
doctor: new Commands.Doctor(),
create: {
app: new Commands.Create.App(),
Expand Down
3 changes: 1 addition & 2 deletions src/lib/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class CLI implements Command {
// TODO generate this from cli tree
// static help template
private static help = format(`
nexus - GraphQL APIs without the hassle
Delightful GraphQL Application Framework - https://nexusjs.org
${chalk.bold('Usage')}
Expand All @@ -218,7 +218,6 @@ export class CLI implements Command {
create Setup a ready-to-use nexus
dev Develop your application in watch mode
build Build a production-ready server
generate Generate the artifacts
doctor Check your project state for any problems
db Set of commands to work with your database
Expand Down

0 comments on commit 2abd73d

Please sign in to comment.