20 std::shared_ptr<Property<std::size_t>> m_maxCommandHistoryEntries;
21 std::shared_ptr<Property<std::string>> m_historyFileName;
24 std::vector<CommandHistoryEntry> m_history;
25 std::optional<std::size_t> m_position;
28 std::vector<CommandHistoryEntry> internalAllOf();
33 std::vector<CommandHistoryEntry>
allOf();
36 std::optional<CommandHistoryEntry>
nextOf(
const std::string &
menu);
Definition CommandHistoryEntry.h:11
Definition CommandLineHistoryService.h:18
void onInitialize() override
std::optional< CommandHistoryEntry > previousOf(const std::string &menu)
void historizeOf(const CommandHistoryEntry &commandHistoryEntry)
std::vector< CommandHistoryEntry > allOf()
std::optional< CommandHistoryEntry > nextOf(const std::string &menu)
CommandLineHistoryService(const std::shared_ptr< ProcessName > &processName)
std::optional< CommandHistoryEntry > startsWith(const std::string &command, const std::string &menu)