You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: