Currently we don't support publishing packages/plugins (i.e. pub publish), or running executables from packages (i.e. pub run, for example for package:intl) with the flutter command.
It would be great if we could forward all relevant pub subcommands to equivalent flutter packages commands. At least the following seem to make sense:
Already supported
flutter packages get -> pub get
flutter packages upgrade -> pub upgrade
Should be added
flutter packages downgrade -> pub downgrade, the opposite of upgrade
flutter packages publish -> pub publish to support publishing a plugin
flutter packages deps -> pub deps to show package dependencies
flutter packages run -> pub run to support running executables, e.g. for package:intl
flutter packages cache -> pub cache to manage the pub cache contents
flutter packages version -> pub version to see the pub version
flutter packages uploader -> pub uploader to manage package uploaders
flutter packages global -> pub global: pub global commands
Can be ignored
pub build: web workflow, not relevant
pub serve: web workflow, not relevant
pub help: flutter has it's own help
Currently we don't support publishing packages/plugins (i.e.
pub publish), or running executables from packages (i.e.pub run, for example for package:intl) with the flutter command.It would be great if we could forward all relevant pub subcommands to equivalent
flutter packagescommands. At least the following seem to make sense:Already supported
flutter packages get->pub getflutter packages upgrade->pub upgradeShould be added
flutter packages downgrade->pub downgrade, the opposite of upgradeflutter packages publish->pub publishto support publishing a pluginflutter packages deps->pub depsto show package dependenciesflutter packages run->pub runto support running executables, e.g. for package:intlflutter packages cache->pub cacheto manage the pub cache contentsflutter packages version->pub versionto see the pub versionflutter packages uploader->pub uploaderto manage package uploadersflutter packages global->pub global: pub global commandsCan be ignored
pub build: web workflow, not relevantpub serve: web workflow, not relevantpub help: flutter has it's own help