utempl/examples/src/menu.cpp

14 lines
332 B
C++
Raw Normal View History

2024-03-27 23:42:04 +00:00
#include <utempl/menu.hpp>
#include <iostream>
auto main() -> int {
utempl::menu::Menu{}
.With<{"This is 0"}>([]{
std::cout << "You entered 0" << std::endl;
})
.With<{"Some Long", "S"}>([]{
std::cout << "It aligns the output to the longest element" << std::endl;
})
.Run<"[{0}]{2} - |{1}|\n">();
};