diff --git a/bin/cbj_hub.dart b/bin/cbj_hub.dart index c56f027..49ecf7f 100644 --- a/bin/cbj_hub.dart +++ b/bin/cbj_hub.dart @@ -14,12 +14,17 @@ import 'package:cbj_integrations_controller/infrastructure/shared_variables.dart import 'package:cbj_integrations_controller/infrastructure/system_commands/system_commands_manager_d.dart'; import 'package:cbj_integrations_controller/initialize_integrations_controller.dart'; import 'package:cbj_integrations_controller/injection.dart'; +import 'package:network_tools/network_tools.dart'; Future main(List arguments) async { + configureNetworkTools('network_tools_db'); + setInstancesOfRepos(arguments.firstOrNull ?? Directory.current.path); // arguments[0] is the location of the project - // network.configureNetworkTools('network_tools_db'); - await initializeIntegrationsController(arguments: arguments, env: Env.devPc); + await initializeIntegrationsController( + projectRootDirectoryPath: arguments.firstOrNull ?? Directory.current.path, + env: Env.devPc, + ); await BootUp.setup(); } diff --git a/pubspec.yaml b/pubspec.yaml index 56b33ae..f88b988 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -50,13 +50,13 @@ dependencies: # Service discovery over multicast DNS (mDNS), Bonjour, and Avahi. multicast_dns: ^0.3.2+4 # Helps you discover open ports, devices on subnet and more. - network_tools: ^3.2.1 + network_tools: ^4.0.1 # Provides runtime support for a Dart implementation of protobufs. protobuf: ^3.1.0 # Extends the capabilities of Dart Streams and StreamControllers. rxdart: ^0.27.7 # Simple, fast generation of RFC4122 UUIDs. - uuid: ^4.1.0 + uuid: ^4.2.1 dev_dependencies: # A build system for Dart code generation and modular compilation. @@ -64,14 +64,14 @@ dev_dependencies: # A generator for injectable library # Code generator for unions/pattern-matching/copy. - freezed: ^2.4.1 + freezed: ^2.4.5 # Automatically generates Hive TypeAdapters to store any class hive_generator: ^2.0.1 # Code generator for the Isar Database. Finds classes annotated with @Collection. # isar_generator: ^3.0.5 # Collection of lint rules for Dart and Flutter projects - lint: ^2.1.2 + lint: ^2.2.0 # Library for mocks mockito: ^5.4.2 # A full featured library for writing and running Dart tests across platforms. - test: ^1.24.7 + test: ^1.24.9