Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grace generate command #771

Closed
rainboyan opened this issue Dec 3, 2024 · 0 comments
Closed

Grace generate command #771

rainboyan opened this issue Dec 3, 2024 · 0 comments
Assignees
Labels
theme: cli Issues related to grace cli type: feature A general feature
Milestone

Comments

@rainboyan
Copy link
Member

Using generators will save you a large amount of time by writing boilerplate code,

➜  blog git:(main) ✗ grace generate --help
Usage:
  grace generate GENERATOR [args] [options]

General options:
  -h, [--help]                      # Print generator's options and usage
  -f, [--force]                     # Overwrite files that already exist
  -s, [--skip]                      # Skip files that already exist
  -q, [--quiet]                     # Suppress status output

Please choose a generator below:

  controller
  domain
  generator
  interceptor
  service
  taglib

Example:

    # Generate Grace artefacts
        $ grace generate domain Post title:string
        $ grace generate controller Post index create
@rainboyan rainboyan added theme: cli Issues related to grace cli type: feature A general feature labels Dec 3, 2024
@rainboyan rainboyan added this to the 2023.2.0-M2 milestone Dec 3, 2024
@rainboyan rainboyan self-assigned this Dec 3, 2024
@rainboyan rainboyan changed the title Grace Generator API and generate command Grace generate command Dec 3, 2024
@rainboyan rainboyan moved this to Done in 2023.2.0-M1 Dec 4, 2024
@rainboyan rainboyan removed this from 2023.2.0-M1 Dec 4, 2024
@rainboyan rainboyan moved this to Done in 2023.2.0-M2 Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: cli Issues related to grace cli type: feature A general feature
Projects
Status: Done
Development

No branches or pull requests

1 participant