Skip to content

Update all the packages in pubspec.yaml of a Flutter project.

Notifications You must be signed in to change notification settings

glofru/flutter_pubspec_updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter pubspec.yaml updater

Python

A simple tool that updates your pubspec.yaml file, of a Flutter project, without altering the structure of your file.

Install

Just run INSTALL.sh, this will add the command pubspec_update in your terminal.

Usage

Run pubspec_update passing an empty argument or, alternatively, either the path of the Flutter project or the pubspec.yaml file. Example:

  • pubspec_update, this will take as path the current working directory.
  • pubspec_update ~/my/flutter/project
  • pubspec_update ~/my/flutter/project/pubspec.yaml

The tool will print a table with all the packages that need an update. This table contains the package name, the current version in the pubspec and the newer version available on pub.dev.

1

Immediately after, two questions will be asked:

  • Whether you want the tool to open the browser on the changelog page of every package.
  • Whether you want the tool to automatically update the pubspec.yaml file without altering the file structure at all — like comments, package orders, etc.

Enjoy!

About

Update all the packages in pubspec.yaml of a Flutter project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages