diff --git a/README.md b/README.md index 84d2960..d945f83 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ Compatible with dart2js and dart2native. ### Install via dev dependency ```shell -$ flutter pub add --dev icon_font_generator +dart add --dev icon_font_generator # And it's ready to go: -$ flutter pub run icon_font_generator:generate [options] +dart run icon_font_generator:generator [options] ``` ### or [Globally activate][] the package: @@ -28,10 +28,10 @@ $ flutter pub run icon_font_generator:generate [options] +icon_font_generator [options] ``` Required positional arguments: @@ -75,7 +75,7 @@ Shows usage information. *Usage example:* ```shell -$ icon_font_generator assets/svg/ fonts/my_icons_font.otf --output-class-file=lib/my_icons.dart -r +icon_font_generator assets/svg/ fonts/my_icons_font.otf --output-class-file=lib/my_icons.dart -r ``` Updated Flutter project's pubspec.yaml: @@ -111,8 +111,12 @@ icon_font: verbose: false ``` -`input_svg_dir` and `output_font_file` keys are required. -It's possible to specify any other config file by using `--config-file` option. +`input_svg_dir` and `output_font_file` keys are required in the config file. +It's possible to specify any other config file by using `--config-file` option as: + +```shell +dart run icon_font_generator:generator --config-file=icon_font.yaml +``` ## Using API diff --git a/pubspec.lock b/pubspec.lock index 87e1d13..86f64d9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -149,10 +149,10 @@ packages: dependency: "direct main" description: name: logger - sha256: db2ff852ed77090ba9f62d3611e4208a3d11dfa35991a81ae724c113fcb3e3f7 + sha256: ba3bc83117b2b49bdd723c0ea7848e8285a0fbc597ba09203b20d329d020c24a url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "2.0.2" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index e52160b..5521b4d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: args: ^2.4.0 collection: ^1.17.0 dart_style: ^2.3.0 - logger: ^1.3.0 + logger: ^2.0.2 meta: ^1.8.0 path: ^1.8.2 path_parsing: ^1.0.1