Skip to content

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

add help shell to provider

Geo73480b7c23bc
diff --git a/src/Providers/DependencyProvider.cpp b/src/Providers/DependencyProvider.cpp
index 25b30b2f..44dde572 100644
--- a/src/Providers/DependencyProvider.cpp
+++ b/src/Providers/DependencyProvider.cpp
@@ -70,6 +70,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
modbusShell(terminalView, terminalInput, argTransformer, userInputManager, modbusService),
oneWireEepromShell(terminalView, terminalInput, oneWireService, argTransformer, userInputManager, binaryAnalyzeManager),
guideShell(terminalView, terminalInput, userInputManager),
+ helpShell(terminalView, terminalInput, userInputManager),
// Selectors
horizontalSelector(deviceView, deviceInput),
@@ -82,7 +83,7 @@ DependencyProvider::DependencyProvider(ITerminalView &terminalView, IDeviceView
i2cController(terminalView, terminalInput, i2cService, argTransformer, userInputManager, i2cEepromShell),
oneWireController(terminalView, terminalInput, oneWireService, argTransformer, userInputManager, ibuttonShell, oneWireEepromShell),
infraredController(terminalView, terminalInput, infraredService, littleFsService, argTransformer, infraredTransformer, userInputManager, universalRemoteShell),
- utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, pinAnalyzeManager, argTransformer, sysInfoShell, guideShell),
+ utilityController(terminalView, deviceView, terminalInput, pinService, userInputManager, pinAnalyzeManager, argTransformer, sysInfoShell, guideShell, helpShell),
hdUartController(terminalView, terminalInput, deviceInput, hdUartService, uartService, argTransformer, userInputManager),
spiController(terminalView, terminalInput, spiService, sdService, argTransformer, userInputManager, binaryAnalyzeManager, sdCardShell, spiFlashShell, spiEepromShell),
jtagController(terminalView, terminalInput, jtagService, userInputManager),
diff --git a/src/Providers/DependencyProvider.h b/src/Providers/DependencyProvider.h
index e618678e..4b4db1d5 100644
--- a/src/Providers/DependencyProvider.h
+++ b/src/Providers/DependencyProvider.h
@@ -84,6 +84,7 @@ and injecting shared instances of core components
#include "Shells/ModbusShell.h"
#include "Shells/OneWireEepromShell.h"
#include "Shells/GuideShell.h"
+#include "Shells/HelpShell.h"
#include "Config/TerminalTypeConfigurator.h"
class DependencyProvider
@@ -189,6 +190,7 @@ public:
ModbusShell &getModbusShell();
OneWireEepromShell &getOneWireEepromShell();
GuideShell &getGuideShell();
+ HelpShell &getHelpShell();
// Selectors
HorizontalSelector &getHorizontalSelector();
@@ -293,6 +295,7 @@ private:
ModbusShell modbusShell;
OneWireEepromShell oneWireEepromShell;
GuideShell guideShell;
+ HelpShell helpShell;
// Selectors
HorizontalSelector horizontalSelector;