Skip to content

Commit

Permalink
docs(cli): reference new flag in crud generation doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rizerkrof committed Dec 16, 2024
1 parent 99346b7 commit 5d13e87
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion documentation/docs/tutorials/02-crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ fuego controller books
go run github.com/go-fuego/fuego/cmd/fuego@latest controller books
```

This generates a controller and a service for the `books` resource.
This generates a controller for the `books` resource.

:::tip

Use `fuego controller --with-service books` to generate a simple map based in memory service so you can pass it to the controller resources to quickly interact with your new book entity!

:::

You then have to implement the service interface in the controller to be able
to play with data. It's a form of **dependency injection** that we chose to use
Expand Down

0 comments on commit 5d13e87

Please sign in to comment.