Help text for target driver passthrough commands

This commit is contained in:
Nav
2024-12-16 21:36:47 +00:00
parent 6873b2f53a
commit 9486cc0163
14 changed files with 119 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ namespace TargetController::Responses
TARGET_STACK_POINTER,
TARGET_PROGRAM_COUNTER,
PROGRAM_BREAKPOINT,
TARGET_PASSTHROUGH_HELP_TEXT,
TARGET_PASSTHROUGH_RESPONSE,
};
}

View File

@@ -0,0 +1,24 @@
#pragma once
#include <string>
#include "Response.hpp"
namespace TargetController::Responses
{
class TargetPassthroughHelpText: public Response
{
public:
static constexpr ResponseType type = ResponseType::TARGET_PASSTHROUGH_RESPONSE;
std::string text;
explicit TargetPassthroughHelpText(std::string&& text)
: text(std::move(text))
{}
[[nodiscard]] ResponseType getType() const override {
return TargetPassthroughHelpText::type;
}
};
}