Skip to content

Commit

Permalink
Clang Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Sep 4, 2024
1 parent f282bb2 commit d14fe97
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions src/EnergyPlus/CommandLineInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,38 +238,38 @@ Built on Platform: {}
static constexpr std::array<std::string_view, 6> logLevelStrs = {"Trace", "Debug", "Info", "Warn", "Error", "Fatal"};

auto *auxiliaryToolsSubcommand = app.add_subcommand("auxiliary", "Run Auxiliary Python Tools");
auxiliaryToolsSubcommand->require_subcommand(); // should default to requiring 1 or more additional args?
enum class ValidAuxiliaryTools
{
eplaunch

};
auxiliaryToolsSubcommand->require_subcommand(); // should default to requiring 1 or more additional args?
// enum class ValidAuxiliaryTools
// {
// eplaunch
//
// };
std::vector<std::string> python_fwd_args;

// auto *transitionSubcommand = auxiliaryToolsSubcommand->add_subcommand("energyplus_iddidf", "EnergyPlus Python IDD/IDF Utilities");
// transitionSubcommand->add_option("args", python_fwd_args, "Extra Arguments forwarded to the Python script")->option_text("ARG ...");
// transitionSubcommand->positionals_at_end(true);
// transitionSubcommand->footer("You can pass extra arguments after the Python file, they will be forwarded.");
//
// transitionSubcommand->callback([&state, &python_fwd_args] {
// EnergyPlus::Python::PythonEngine engine(state);
// // There's probably better to be done, like instantiating the pythonEngine with the argc/argv then calling PyRun_SimpleFile but whatever
// std::string cmd = R"python(import sys
// sys.argv.clear()
// sys.argv.append("energyplus")
// )python";
// for (const auto &arg : python_fwd_args) {
// cmd += fmt::format("sys.argv.append(\"{}\")\n", arg);
// }
//
// cmd += R"python(
// from energyplus_iddidf.cli import main_cli
// main_cli()
// )python";
//
// engine.exec(cmd);
// exit(0);
// });
// auto *transitionSubcommand = auxiliaryToolsSubcommand->add_subcommand("energyplus_iddidf", "EnergyPlus Python IDD/IDF Utilities");
// transitionSubcommand->add_option("args", python_fwd_args, "Extra Arguments forwarded to the Python script")->option_text("ARG
// ..."); transitionSubcommand->positionals_at_end(true); transitionSubcommand->footer("You can pass extra arguments after the Python
// file, they will be forwarded.");
//
// transitionSubcommand->callback([&state, &python_fwd_args] {
// EnergyPlus::Python::PythonEngine engine(state);
// // There's probably better to be done, like instantiating the pythonEngine with the argc/argv then calling PyRun_SimpleFile but
// whatever std::string cmd = R"python(import sys
// sys.argv.clear()
// sys.argv.append("energyplus")
// )python";
// for (const auto &arg : python_fwd_args) {
// cmd += fmt::format("sys.argv.append(\"{}\")\n", arg);
// }
//
// cmd += R"python(
// from energyplus_iddidf.cli import main_cli
// main_cli()
// )python";
//
// engine.exec(cmd);
// exit(0);
// });

auto *epLaunchSubcommand = auxiliaryToolsSubcommand->add_subcommand("eplaunch", "EP-Launch");
epLaunchSubcommand->callback([&state, &python_fwd_args] {
Expand Down

4 comments on commit d14fe97

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python_packaging (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (2893 of 2893 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python_packaging (Myoldmopar) - Win64-Windows-10-VisualStudio-16: OK (2871 of 2871 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python_packaging (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-RelWithDebInfo: OK (2077 of 2077 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python_packaging (Myoldmopar) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-RelWithDebInfo: OK (799 of 799 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.