diff --git a/CHANGELOG.md b/CHANGELOG.md index b044ee2..8e2df58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [5.25.3] - 2024-04-18 + +* Update metro make:model --json command to check if cli is running on Windows or MacOS + ## [5.25.2] - 2024-04-17 * Update pubspec.yaml diff --git a/lib/metro/metro.dart b/lib/metro/metro.dart index 3b2dc73..c3f0f0a 100644 --- a/lib/metro/metro.dart +++ b/lib/metro/metro.dart @@ -957,8 +957,17 @@ _makeModel(List arguments) async { if (hasJsonFlag) { final fileName = 'nylo-model.json'; - MetroConsole.writeInGreen( - 'Input your text and press Ctrl + D to save and exit.'); + String? consoleMessage; + if (Platform.isMacOS || Platform.isLinux) { + consoleMessage = 'Input your text and press Ctrl + D to save and exit.'; + } + if (Platform.isWindows) { + consoleMessage = 'Input your text and press Ctrl + C to save and exit.'; + } + + if (consoleMessage != null) { + MetroConsole.writeInGreen(consoleMessage); + } // Read user input from stdin final StringBuffer buffer = StringBuffer(); diff --git a/lib/nylo_framework.dart b/lib/nylo_framework.dart index d965849..a64b20e 100644 --- a/lib/nylo_framework.dart +++ b/lib/nylo_framework.dart @@ -45,4 +45,4 @@ export 'package:skeletonizer/skeletonizer.dart'; export 'package:dio/dio.dart'; /// Nylo version -const String nyloVersion = 'v5.25.2'; +const String nyloVersion = 'v5.25.3'; diff --git a/pubspec.yaml b/pubspec.yaml index c523b10..bba299d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: nylo_framework description: Micro-framework for Flutter that's built to simplify app development for Flutter projects. -version: 5.25.2 +version: 5.25.3 homepage: https://nylo.dev repository: https://github.com/nylo-core/framework/tree/5.x issue_tracker: https://github.com/nylo-core/framework/issues