hanami/assets

Standardize name of CLI tool to `hanami assets`

Closed this issue · 4 comments

cllns commented

Can we change hanami-assets to hanami assets?

It would simplify things if the commands are the same regardless of whether you're using hanami-assets alone or with the rest of hanami.

  1. It'd have to check to see if the current project is a full hanami project, and if so, prefer those CLI tools instead.
  2. It would also have to add a precompile command, in order to provide the same API.
    Since right now it's hanami-assets vs hanami assets precompile

@cllns How? 😄

I think we can use CLI hack here. What do you think @jodosha? If you agree I can make PR.

@davydovanton If your idea is to use hanami/hanami#566, my answer is no. 😄 That would create a cyclic dependency between hanami and hanami-assets, unless we extract hanami-cli and make both the gems to depend on it. But I hope to not extract that gem.

Closing this as stale discussion. If we think we should iterate, please commend below. Thanks.