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

Rename file at bin/dart_dbus.dart to bin/dbus.dart for ease of use. #358

Closed
markvideon opened this issue Nov 30, 2022 · 3 comments
Closed

Comments

@markvideon
Copy link

If I add some package intended for use as a CLI to a for a Flutter application's dependencies, I can run that using flutter pub run [package_name] [arg1] ... [argN].

I'd like to suggest renaming this package's file in /bin, and an update to the readme highlighting that it is possible to consume the CLI in the above way for anyone with the Flutter SDK installed.

@aadarshadhakalg
Copy link

But then if I want to install it globally, will it be possible?

@jonasfj
Copy link

jonasfj commented Sep 19, 2023

But then if I want to install it globally, will it be possible?

Yes!

@aadarshadhakalg
You'll just need an executables: {'dart-dbus': 'dbus'} in pubspec.yaml.

But also, don't globally activate it. You'll want the version of package:dbus used for codegen to be the same version as you're using to run your code.

For more details see #362

@markvideon
Copy link
Author

Closing based on comments in #362

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