-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[flutter_plugin_tools] Add --packages, and deprecated --plugins #4134
[flutter_plugin_tools] Add --packages, and deprecated --plugins #4134
Conversation
Most of the tool operates on packages in general, and the targetting done currently by the `--plugins` flag is not actually restricted to plugins, so this makes the name less confusing. Part of flutter/flutter#83413
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I'd try to add a deprecation notice if the user calls the script with --plugins instead of --packages so they're aware of this change, but if it's not a straightforward change, I wouldn't use too much time.
(I did a quick google search of "--plugins" in flutter.dev and our github and couldn't find any docs mentioning the argument? odd)
splitCommas: true, | ||
help: | ||
'Specifies which plugins the command should run on (before sharding).', | ||
valueHelp: 'plugin1,plugin2,...', | ||
'Specifies which packages the command should run on (before sharding).\n', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we note in this help text that this is deprecating _pluginsArg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The set of people likely to actually be using this tool manually is very small; I'm not worried about them getting the memo.
I'd be pretty surprised if anything on flutter.dev mentioned it. We should add the package-targeting options to the tool README at some point though. |
…ter#4134) Most of the tool operates on packages in general, and the targetting done currently by the `--plugins` flag is not actually restricted to plugins, so this makes the name less confusing. Part of flutter/flutter#83413
…ter#4134) Most of the tool operates on packages in general, and the targetting done currently by the `--plugins` flag is not actually restricted to plugins, so this makes the name less confusing. Part of flutter/flutter#83413
Most of the tool operates on packages in general, and the targetting
done currently by the
--plugins
flag is not actually restricted toplugins, so this makes the name less confusing.
--plugin
will continue to work for now to minimize disruption toscripts and workflows.
Part of flutter/flutter#83413
Pre-launch Checklist
dart format
.)[shared_preferences]
///
).