riverpod_cli 0.0.1 riverpod_cli: ^0.0.1 copied to clipboard
A command line tool for Riverpod
A command line for Riverpod, to help upgrade to newer versions of Riverpod.
To use:
Add to your pubspec.yaml
:
dev_dependencies:
codemod_riverpod: ^0.0.2
Usage #
Migration #
To easily upgrade your Riverpod version:
- open in a terminal the project you want to migrate.
You should be located in the same folder than the project's
pubspec.yaml
. - Make sure that your code has no analysis errors otherwise the migration will have trouble running.
- run:
riverpod migrate
One example would be:
- import 'package:riverpod/all.dart';
+ import 'package:riverpod/riverpod.dart';
You can then press y
to accept the change or n
to reject it.