summaryrefslogtreecommitdiff
path: root/include/startMenu.hpp
blob: 0168424bc055513759c7be1616a3666b97c48287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include <format>
#include <iostream>

template <typename... FunctionType>
void launchFunction(FunctionType... aFunctions) {
    std::cout << "MENU: SELECT THE FUNCTION\n"
              << "=========================" << std::endl;
    for (size_t aFunctionIndex = 0; aFunctionIndex < sizeof...(aFunctions);
         aFunctionIndex++) {
        std::cout << std::format("{}) {}", aFunctionIndex + 1,
                                 "currentFunctionName") // FIXME: replace this
                  << std::endl;
    }
    std::cout << "=========================" << std::endl;
}