cli icon indicating copy to clipboard operation
cli copied to clipboard

`hanami g action` overrides existing action + spec

Open radar opened this issue 2 years ago • 1 comments

What I tried to do:

hanami g action accounts.show

What I expected to happen:

It would not override the existing files matching those paths (app/actions/accounts/show.rb / spec/actions/accounts/show_spec.rb)

What actually happened:

It overrode those files without asking.

radar avatar Nov 23 '22 08:11 radar

@radar We're aware of this. It isn't a bug, it's just we didn't implement it yet.

jodosha avatar Nov 23 '22 08:11 jodosha

Thanks for reporting this, I plan on fixing it soon. Closing this in favor of #181 since it affects all our generators, not just action.

cllns avatar Jul 09 '24 18:07 cllns