Skip to content

A Hardware Hacking Tool with Web-Based CLI That Speaks Every Protocol

add shell to provider

Geoe2e2342279fe
diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cpp
index 7c0cb47e..b1ac4be5 100644
--- a/src/Providers/DependencyProvider.cpp
+++ b/src/Providers/DependencyProvider.cpp
@@ -31,14 +31,15 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
argTransformer(),
webRequestTransformer(),
commandHistoryManager(),
- binaryAnalyzeManager(spiService, terminalView, terminalInput),
+ binaryAnalyzeManager(terminalView, terminalInput),
userInputManager(terminalView, terminalInput, argTransformer),
sdCardShell(sdService, terminalView, terminalInput, argTransformer),
universalRemoteShell(terminalView, terminalInput, infraredService, argTransformer, userInputManager),
+ i2cEepromShell(terminalView, terminalInput, i2cService, argTransformer, userInputManager, binaryAnalyzeManager),
horizontalSelector(deviceView, deviceInput),
terminalTypeConfigurator(horizontalSelector),
uartController(terminalView, terminalInput, deviceInput, uartService, sdService, hdUartService, argTransformer, userInputManager),
- i2cController(terminalView, terminalInput, i2cService, argTransformer, userInputManager),
+ i2cController(terminalView, terminalInput, i2cService, argTransformer, userInputManager, i2cEepromShell),
oneWireController(terminalView, terminalInput, oneWireService, argTransformer, userInputManager),
infraredController(terminalView, terminalInput, infraredService, argTransformer, userInputManager, universalRemoteShell),
utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, argTransformer),
@@ -117,6 +118,7 @@ BinaryAnalyzeManager &DependencyProvider::getBinaryAnalyzeManager() { return bin
// Shells
SdCardShell &DependencyProvider::getSdCardShell() { return sdCardShell; }
UniversalRemoteShell &DependencyProvider::getUniversalRemoteShell() { return universalRemoteShell; }
+I2cEepromShell &DependencyProvider::getI2cEepromShell() { return i2cEepromShell; }
// Selectors
HorizontalSelector &DependencyProvider::getHorizontalSelector() { return horizontalSelector; }
diff --git a/src/Providers/DependencyProvider.h b/src/Providers/DependencyProvider.h
index bf5dd870..2e20b450 100644
--- a/src/Providers/DependencyProvider.h
+++ b/src/Providers/DependencyProvider.h
@@ -55,6 +55,7 @@ and injecting shared instances of core components
#include "Managers/UserInputManager.h"
#include "Shells/SdCardShell.h"
#include "Shells/UniversalRemoteShell.h"
+#include "Shells/I2cEepromShell.h"
#include "Config/TerminalTypeConfigurator.h"
class DependencyProvider
@@ -127,6 +128,7 @@ public:
// Shells
SdCardShell &getSdCardShell();
UniversalRemoteShell &getUniversalRemoteShell();
+ I2cEepromShell &getI2cEepromShell();
// Selectors
HorizontalSelector &getHorizontalSelector();
@@ -199,6 +201,7 @@ private:
// Shells
SdCardShell sdCardShell;
UniversalRemoteShell universalRemoteShell;
+ I2cEepromShell i2cEepromShell;
// Selectors
HorizontalSelector horizontalSelector;