Add pagination to b_manage

This commit is contained in:
2024-03-14 23:41:05 +01:00
parent cdf339856a
commit bf5dabb169
6 changed files with 89 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ namespace platform {
class CommandParser {
public:
CommandParser() = default;
std::pair<char, int> parse(const std::string& color, const std::vector<std::tuple<std::string, char, bool>>& options, const char defaultCommand, const int maxIndex);
std::pair<char, int> parse(const std::string& color, const std::vector<std::tuple<std::string, char, bool>>& options, const char defaultCommand, const int minIndex, const int maxIndex);
char getCommand() const { return command; };
int getIndex() const { return index; };
private: