Skip to content

Commit 768c7d4

Browse files
Merge pull request fluttercommunity#406 from fluttercommunity/feat/cli-improvement
feat/cli-improvement
2 parents 226b3db + 142a6a7 commit 768c7d4

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ the name of the file when running the package.
3838

3939
```shell
4040
flutter pub get
41-
flutter pub run flutter_launcher_icons:main -f <your config file name here>
41+
flutter pub run flutter_launcher_icons -f <your config file name here>
4242
```
4343

4444
Note: If you are not using the existing `pubspec.yaml` ensure that your config file is located in the same directory as it.
@@ -49,7 +49,7 @@ After setting up the configuration, all that is left to do is run the package.
4949

5050
```shell
5151
flutter pub get
52-
flutter pub run flutter_launcher_icons:main
52+
flutter pub run flutter_launcher_icons
5353
```
5454

5555
If you encounter any issues [please report them here](https://github.com/fluttercommunity/flutter_launcher_icons/issues).

bin/flutter_launcher_icons.dart

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'package:flutter_launcher_icons/constants.dart';
2+
import 'package:flutter_launcher_icons/main.dart' as flutter_launcher_icons;
3+
import 'package:flutter_launcher_icons/src/version.dart';
4+
5+
void main(List<String> arguments) {
6+
print(introMessage(packageVersion));
7+
flutter_launcher_icons.createIconsFromArguments(arguments);
8+
}

bin/main.dart

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import 'package:flutter_launcher_icons/constants.dart';
2-
import 'package:flutter_launcher_icons/main.dart' as flutter_launcher_icons;
3-
import 'package:flutter_launcher_icons/src/version.dart';
1+
import 'flutter_launcher_icons.dart' as flutter_launcher_icons;
42

53
void main(List<String> arguments) {
6-
print(introMessage(packageVersion));
7-
flutter_launcher_icons.createIconsFromArguments(arguments);
4+
print('This command is deprecated and replaced with "flutter pub run flutter_launcher_icons"');
5+
flutter_launcher_icons.main(arguments);
86
}

0 commit comments

Comments
 (0)