Skip to content

Commit

Permalink
Didn't quite finish fixing the New command, gonna finish up tomorrow
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaSTL committed Dec 9, 2023
1 parent 03ec0b1 commit 4f5d2c6
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 209 deletions.
17 changes: 17 additions & 0 deletions include/Frate/Generators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
#include "./Command.hpp"

namespace Frate::Generators{
namespace Project {
using nlohmann::json;
using Utils::CLI::Prompt;
json getTemplateIndex();

typedef struct Template {
std::string name;
std::string git;
std::string description;
} Template;

void from_json(const json& j, Template& t);

std::pair<bool, Template> promptForProjectName(json index);

bool create(std::shared_ptr<Command::Project> pro);
}
namespace GitIgnore{
bool create(Command::Interface* inter);
}
Expand Down
Loading

0 comments on commit 4f5d2c6

Please sign in to comment.