onatcipli / rename

The Rename CLI Tool is a utility designed to modify your Flutter project's AppName and BundleId across various platforms, such as iOS, Android, Macos, Linux, Windows and Web
https://pub.dev/packages/rename
MIT License
168 stars 40 forks source link

Commands are not working in linux #55

Open Dheeraj-Reddy-Mallapu opened 1 month ago

Dheeraj-Reddy-Mallapu commented 1 month ago

I have followed the instructions from the readMe file of this repo.

Command: rename setAppName --targets android --value "My App Name" Output: rename: unrecognized option '--targets' Try 'rename --help' for more information.

Same output for setBundleId

When I run rename --help, it gives me this: Usage: rename [options] ...

Rename files.

Options: -v, --verbose explain what is being done -s, --symlink act on the target of symlinks -n, --no-act do not make any changes -a, --all replace all occurrences -l, --last replace only the last occurrence -o, --no-overwrite don't overwrite existing files -i, --interactive prompt before overwrite

-h, --help display this help -V, --version display version

The help does not contan any options like --targets or --value.

Dheeraj-Reddy-Mallapu commented 1 month ago

It looks like linux has a utility called util-linux that has rename commands. flutter pub global activate rename did not override the system commands.

Anyone know how to solve this? Please let me know.