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

String replace in copied file? #26

Open
flybayer opened this issue May 13, 2019 · 2 comments
Open

String replace in copied file? #26

flybayer opened this issue May 13, 2019 · 2 comments

Comments

@flybayer
Copy link

Tried this for the first time. I was expecting it to string replace all the names in the new file, but it seems that's not currently a feature unless something broke for me.

Is is something you'd consider?

  1. generact BigDogs
  2. Set new name SmallDogs
  3. generact auto replaces all versions of BigDog with SmallDog (so bigDog->smallDog, big_dog->small_dog, etc)
@diegohaz
Copy link
Owner

diegohaz commented May 13, 2019

Probably related to #14 (comment)

I chose not to update those names because it could lead to false positives.

But it should replace all BigDogs words by SmallDogs. Isn't it working for you?

@flybayer
Copy link
Author

No, it didn't rename anything. I manually passed it the path to events.ts, a mobx-state-tree store.

What about adding a CLI flag to replace all variants? If it doesn't replace all variants, it's quicker and easier for me to just do the normal copy/paste dance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants