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

Commands are not working in linux #55

Open
Dheeraj-Reddy-Mallapu opened this issue Jul 23, 2024 · 4 comments
Open

Commands are not working in linux #55

Dheeraj-Reddy-Mallapu opened this issue Jul 23, 2024 · 4 comments

Comments

@Dheeraj-Reddy-Mallapu
Copy link

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
Copy link
Author

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.

@DeepeshKalura
Copy link

same issue

@poqueque
Copy link

Not working either in MacOS, same issue. Any workaround?

@poqueque
Copy link

Found the workaround of adding to dev_dependencies and executing dart run package_rename instead of activating globally.

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

3 participants