This commit is contained in:
@ -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.
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user