hanami / hanami/hanami-cli

Running generators inside slice should infer --slice SLICE_NAME

Open
#185 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
33
Forks
55
Avg merge
8d 7h
Merged PRs (30d)
2

Description

Right now, you can only us generators from the main folder, but it'd be a nice feature to have the following be equivalent:

```
# In main project folder
hanami generate action home.index --slice admin
```

```
# in slices/admin/
hanami generate action home.index
```

Similarly, we should let generating from the `app/` folder work the same as it does from the main folder (since app/ is the default, it doesn't need to be any different).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.