diff --git a/melos.yaml b/melos.yaml index 39a0eda..31af42c 100644 --- a/melos.yaml +++ b/melos.yaml @@ -22,7 +22,7 @@ scripts: # run: melos run publish:dart && melos run publish:flutter # description: Run publish for all packages. - prep: + prep:lib: # run: melos run build && melos run meta && melos run markdown && melos run format && melos run analyze run: melos run meta && melos run markdown && melos run format && melos run analyze description: Run prep steps for dart and flutter. @@ -38,7 +38,7 @@ scripts: description: Commit changes for lib package. commit:cli: - run: melos exec--ignore="easy_onvif" git add .; git commit -m "$(cat packages/easy_onvif_cli/tool/publish_tools.yaml | yq -r '.commit')"; git push origin main + run: melos exec --ignore="easy_onvif" git add .; git commit -m "$(cat packages/easy_onvif_cli/tool/publish_tools.yaml | yq -r '.commit')"; git push origin main description: Commit changes for Flutter package. # publish:real:lib: diff --git a/packages/easy_onvif_cli/lib/meta.dart b/packages/easy_onvif_cli/lib/meta.dart index 4c443dd..22150ed 100644 --- a/packages/easy_onvif_cli/lib/meta.dart +++ b/packages/easy_onvif_cli/lib/meta.dart @@ -1,9 +1,7 @@ /// app metadata library; - // DO NOT EDIT THIS FILE // THIS FILE IS AUTOMATICALLY OVER WRITTEN BY PublishTools import 'dart:convert' show json; -final pubSpec = json.decode( - '{description: A pure Dart library designed primarily for command line automation of Onvif compatible devices., homepage: https://github.com/faithoflifedev/easy_onvif_workspace/tree/main/packages/easy_onvif_cli, documentation: null, repository: https://github.com/faithoflifedev/easy_onvif_workspace, issueTracker: null, name: easy_onvif_cli, publish_to: null, version: 3.1.0+4}'); +final pubSpec = json.decode('{description: A pure Dart library designed primarily for command line automation of Onvif compatible devices., homepage: https://github.com/faithoflifedev/easy_onvif_workspace/tree/main/packages/easy_onvif_cli, documentation: null, repository: https://github.com/faithoflifedev/easy_onvif_workspace, issueTracker: null, name: easy_onvif_cli, publish_to: null, version: 3.1.0+5}'); diff --git a/packages/easy_onvif_cli/lib/src/command/onvif_debug_command.dart b/packages/easy_onvif_cli/lib/src/command/onvif_debug_command.dart index a5a9c23..ee4cbf5 100644 --- a/packages/easy_onvif_cli/lib/src/command/onvif_debug_command.dart +++ b/packages/easy_onvif_cli/lib/src/command/onvif_debug_command.dart @@ -445,7 +445,7 @@ class OnvifDebugCommand extends Command with UiLoggy { zipFile.deleteSync(); } - zipFile.writeAsBytesSync(zipData!); + zipFile.writeAsBytesSync(zipData); spinner.success('Bundle created successfully.'); } diff --git a/packages/easy_onvif_cli/lib/src/command/onvif_device_management_command.dart b/packages/easy_onvif_cli/lib/src/command/onvif_device_management_command.dart index a427daf..ee90f45 100644 --- a/packages/easy_onvif_cli/lib/src/command/onvif_device_management_command.dart +++ b/packages/easy_onvif_cli/lib/src/command/onvif_device_management_command.dart @@ -443,8 +443,9 @@ class OnvifGetServicesDeviceManagementCommand extends OnvifHelperCommand { await initializeOnvif(); try { - final services = - await deviceManagement.getServices(argResults!['include-capability']); + final services = await deviceManagement.getServices( + includeCapability: argResults!['include-capability'], + ); print(json.encode(services)); } on DioException catch (err) { diff --git a/packages/easy_onvif_cli/pubspec.yaml b/packages/easy_onvif_cli/pubspec.yaml index 60bc65e..87e561c 100644 --- a/packages/easy_onvif_cli/pubspec.yaml +++ b/packages/easy_onvif_cli/pubspec.yaml @@ -1,5 +1,5 @@ name: easy_onvif_cli -version: 3.1.0+4 +version: 3.1.0+5 homepage: https://github.com/faithoflifedev/easy_onvif_workspace/tree/main/packages/easy_onvif_cli description: A pure Dart library designed primarily for command line automation of Onvif compatible devices. repository: https://github.com/faithoflifedev/easy_onvif_workspace @@ -14,12 +14,14 @@ executables: onvif: dependencies: - archive: ^3.6.1 + archive: ^4.0.1 args: ^2.4.2 ansicolor: ^2.0.3 ansi_escapes: ^1.1.0 cli_spin: ^1.0.1 - easy_onvif: ^3.1.0 + easy_onvif: ^3.1.1+5 + # easy_onvif: + # path: ../easy_onvif dio: ^5.7.0 loggy: ^2.0.3 path: ^1.9.0 diff --git a/pubspec.lock b/pubspec.lock index 934e7b5..66afc01 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: charcode - sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306 + sha256: fb0f1107cac15a5ea6ef0a6ef71a807b9e4267c713bb93e00e92d737cc8dbd8a url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.4.0" checked_yaml: dependency: transitive description: @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: cli_util - sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c url: "https://pub.dev" source: hosted - version: "0.4.1" + version: "0.4.2" clock: dependency: transitive description: @@ -245,10 +245,10 @@ packages: dependency: transitive description: name: process - sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + sha256: "107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d" url: "https://pub.dev" source: hosted - version: "5.0.2" + version: "5.0.3" prompts: dependency: transitive description: @@ -357,10 +357,10 @@ packages: dependency: transitive description: name: test_api - sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.3" + version: "0.7.4" typed_data: dependency: transitive description: