Skip to content

Commit

Permalink
Merge pull request fluttercommunity#406 from fluttercommunity/feat/cl…
Browse files Browse the repository at this point in the history
…i-improvement

feat/cli-improvement
  • Loading branch information
RatakondalaArun committed Aug 13, 2022
2 parents 226b3db + 142a6a7 commit 768c7d4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -38,7 +38,7 @@ the name of the file when running the package.

```shell
flutter pub get
flutter pub run flutter_launcher_icons:main -f <your config file name here>
flutter pub run flutter_launcher_icons -f <your config file name here>
```

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

```shell
flutter pub get
flutter pub run flutter_launcher_icons:main
flutter pub run flutter_launcher_icons
```

If you encounter any issues [please report them here](https://github.com/fluttercommunity/flutter_launcher_icons/issues).
Expand Down
8 changes: 8 additions & 0 deletions bin/flutter_launcher_icons.dart
@@ -0,0 +1,8 @@
import 'package:flutter_launcher_icons/constants.dart';
import 'package:flutter_launcher_icons/main.dart' as flutter_launcher_icons;
import 'package:flutter_launcher_icons/src/version.dart';

void main(List<String> arguments) {
print(introMessage(packageVersion));
flutter_launcher_icons.createIconsFromArguments(arguments);
}
8 changes: 3 additions & 5 deletions bin/main.dart
@@ -1,8 +1,6 @@
import 'package:flutter_launcher_icons/constants.dart';
import 'package:flutter_launcher_icons/main.dart' as flutter_launcher_icons;
import 'package:flutter_launcher_icons/src/version.dart';
import 'flutter_launcher_icons.dart' as flutter_launcher_icons;

void main(List<String> arguments) {
print(introMessage(packageVersion));
flutter_launcher_icons.createIconsFromArguments(arguments);
print('This command is deprecated and replaced with "flutter pub run flutter_launcher_icons"');
flutter_launcher_icons.main(arguments);
}

0 comments on commit 768c7d4

Please sign in to comment.