Closed iamdipanshusingh closed 2 weeks ago
You should be running shorebird/bin/shorebird
, not shorebird.dart
. What are you trying to accomplish by running shorebird.dart
instead?
@bryanoltman I'm running shorebird/packages/shorebird_cli/bin/shorebird.dart
for sure.
ran this command: dart ~/StudioProjects/shorebird/packages/shorebird_cli/bin/shorebird.dart patch -p android,ios
Right – you shouldn't be running shorebird.dart
. You should run the output of which shorebird
, which for me is [parent_dir]/shorebird/bin/shorebird
. Is there a reason you're trying to run the dart file itself?
You mentioned on Discord that you're working on a feature that will patch ios and android together. Can you talk more about the approach you're taking?
Right – you shouldn't be running
shorebird.dart
. You should run the output ofwhich shorebird
, which for me is[parent_dir]/shorebird/bin/shorebird
. Is there a reason you're trying to run the dart file itself?
ohhh, didn't know that! Now I know what I was doing wrong 😅 Thanks for letting me know!
You mentioned on Discord that you're working on a feature that will patch ios and android together. Can you talk more about the approach you're taking?
I saw, there's a hash function which adds the options in each subcommands. So, I've basically combined all the options from all the subcommands and have put it in the patch command itself.
Now that I have the arguments option in the patch
command I'm passing the argParser
and argResults
to then patch subcommands (like PatchAndroidCommand
) along with the hash function in the constructor. Not sure if its a good approach.
Let me know your thoughts on this, and if it can be improved.
closing this issue!
App ID: a1e18e4d-fe2c-42f9-b92e-24df2eae4127
Description
I'm working on a feature which will the users to use the patch or release commands for multiple platforms from a single command. But getting this OS Error.
Steps To Reproduce
Expected Behavior
Expecting the command to run without any failures
Screenshots
Additional Context
Additionally, shorebird cli is working fine and as expected when running its public release. Running shorebid.dart (
~/StudioProjects/shorebird/packages/shorebird_cli/bin/shorebird.dart
) from my app's root folder wherepubspec.yaml
andshorebird.yaml
are locatedRunning this on flutter: 3.19.6 and dart: 3.3.4