14 lines
332 B
C++
14 lines
332 B
C++
|
#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">();
|
||
|
};
|