Not better.
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m29s

This commit is contained in:
Your Name
2025-05-25 19:31:43 +12:00
parent 8f06fc31ae
commit e7558be416
3 changed files with 46 additions and 26 deletions

View File

@ -4,6 +4,7 @@
#include <memory>
#include <set>
#include "config.hpp"
#define JSON_INLINE_ALL
#include "json.hpp"
@ -50,7 +51,7 @@ class template_source_interface {
class template_source_registry : public template_source_interface {
public:
template_source_registry(std::string URL) : mURL(URL) {}
template_source_registry(tRegistryEntry registry) : mRegistry(registry) {}
~template_source_registry() {}
@ -59,11 +60,11 @@ class template_source_registry : public template_source_interface {
template_info get_template_info(const std::string& template_name);
bool template_command_exists(const std::string& template_name,const std::string& command);
std::string get_description() { return "Registry: " + mURL; }
std::string get_description() { return "Registry: " + mRegistry.name + " (" + mRegistry.url + ")"; }
private:
std::filesystem::path get_cache_dir();
private:
std::string mURL;
tRegistryEntry mRegistry;
std::vector<nlohmann::json> mTemplates; // cached list.
};