codemod icon indicating copy to clipboard operation
codemod copied to clipboard

[cli] Add short version of `--no-interactive` flag like `-y`

Open rakleed opened this issue 10 months ago • 1 comments

Issue Description

Select one of:

  • [ ] Generated codemod is not correct
  • [ ] Bug in Codemod Studio
  • [ ] UI/UX improvement request
  • [x] Feature request

I want to run codemod in non-interactive mode quickly.

Steps to Reproduce

  1. Make changes in your code but don't commit them
  2. Run any codemod

Actual Results

I have to type a long --no-interactive flag at the end of the command or interactively write y and press Enter. This is more annoying when you need to run several codemods, but after each one, you want to check the result.

Expected Results

I could pass -y flag as an alias of --no-interactive.

Technical details

https://docs.codemod.com/deploying-codemods/cli#param-no-interactive

rakleed avatar Jan 12 '25 12:01 rakleed

Thanks for sharing this feature request! A revamp of our CLI is on the horizon, and we've talked about having a clean way to bypass interactive mode before, so we’ll definitely keep this in mind. cc @amirabbas-gh @mohebifar

alexbit-codemod avatar Jan 22 '25 19:01 alexbit-codemod

the new CLI is launched darkly! ;) stay tuned for public announcements

alexbit-codemod avatar Jul 04 '25 01:07 alexbit-codemod