Skip to content

Commit

Permalink
fixed another stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lsproule committed Oct 25, 2023
1 parent b063aaa commit 05d140f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Command/CommandInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bool createToml(std::shared_ptr<Context> ctx) {
//Lucas did it again
std::shared_ptr<Generators::ConfigToml::ConfigToml>config_toml = std::make_shared<Generators::ConfigToml::ConfigToml>();
Generators::ConfigToml::readData(ctx, config_toml);
Generators::ConfigToml::writeConfig(ctx);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Generators/ConfigTomlGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ namespace Generators::ConfigToml {
#ifdef DEBUG
file_name ="build/config.toml";
#endif

std::cout << table << '\n';
file.open(ctx->project_path / file_name);
file << table;
file << '\n';
Expand Down
1 change: 1 addition & 0 deletions src/Generators/Generators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Generators::ConfigToml{
} ConfigToml;

bool readData(std::shared_ptr<Command::Context> &ctx, std::shared_ptr<ConfigToml> &config_toml);
bool writeConfig(std::shared_ptr<Command::Context> &ctx);

}

Expand Down

0 comments on commit 05d140f

Please sign in to comment.