Skip to content

Commit

Permalink
Fix .gitignore generated with poac create (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 committed Jul 23, 2022
1 parent ecdd336 commit 8c761fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cmd/create.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ create_template_files(const ProjectType& type, const String& package_name) {
case ProjectType::Bin:
fs::create_directories(package_name / "src"_path);
return {
{".gitignore", "/target"},
{".gitignore", "/poac_output"},
{data::manifest::name, files::poac_toml(package_name)},
{"src"_path / "main.cpp", String(files::main_cpp)}};
case ProjectType::Lib:
fs::create_directories(package_name / "include"_path / package_name);
return {
{".gitignore", "/target\npoac.lock"},
{".gitignore", "/poac_output\npoac.lock"},
{data::manifest::name, files::poac_toml(package_name)},
{"include"_path / package_name / (package_name + ".hpp"),
files::include_hpp(package_name)},
Expand Down

0 comments on commit 8c761fd

Please sign in to comment.