Skip to content

Commit

Permalink
Fix generated xtd console code
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Aug 15, 2024
1 parent 8373f7f commit fced185
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/xtdc/src/xtd_console_project.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ namespace xtdc_command {
"/// @file",
"/// @brief Contains program class.",
"#pragma once",
"#include <xtd/collections/generic/list>",
"#include <xtd/string>",
"#include <vector>",
"",
"/// @brief Represents the namespace that contains application objects.",
xtd::string::format("namespace {} {{", name),
" /// @brief Represents the main class.",
" class program {",
" public:",
" /// @brief The main entry point for the application.",
" static auto main(const std::vector<xtd::string>& args) -> void;",
" static auto main(const xtd::collections::generic::list<xtd::string>& args) -> void;",
" };",
"}",
};
Expand All @@ -110,9 +110,9 @@ namespace xtdc_command {
"#include \"program.h\"",
"#include <xtd/console>",
"",
xtd::string::format("using namespace {};", name),
"using namespace xtd;",
"using namespace xtd::collections::generic;",
xtd::string::format("using namespace {};", name),
"",
"auto program::main(const list<string>& args) -> void {",
" console::write_line(\"Hello, World!\");",
Expand Down

0 comments on commit fced185

Please sign in to comment.