Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/cli-improvement #406

Merged
merged 2 commits into from
Aug 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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);
}