add more info to system/info and show system cmd

This commit is contained in:
proddy
2024-09-07 10:22:27 +02:00
parent 1b650dd118
commit 03127e5ff8
3 changed files with 35 additions and 25 deletions

View File

@@ -79,13 +79,7 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
commands->add_command(ShellContext::MAIN,
CommandFlags::USER,
string_vector{F_(show), F_(system)},
[=](Shell & shell, const std::vector<std::string> & arguments) {
shell.println();
shell.printfln("%s%sEMS-ESP version %s%s", COLOR_BRIGHT_GREEN, COLOR_BOLD_ON, EMSESP_APP_VERSION, COLOR_RESET);
shell.println();
to_app(shell).system_.show_system(shell);
shell.println();
});
[=](Shell & shell, const std::vector<std::string> & arguments) { to_app(shell).system_.show_system(shell); });
commands->add_command(ShellContext::MAIN,
CommandFlags::ADMIN,