Tidying
This commit is contained in:
parent
3bfd6a3cba
commit
56184710a7
@ -16,6 +16,10 @@
|
||||
|
||||
namespace dropshell {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// template_source_local
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
std::set<std::string> template_source_local::get_template_list() {
|
||||
std::set<std::string> templates;
|
||||
|
||||
@ -55,6 +59,50 @@
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// template_source_registry
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
std::set<std::string> template_source_registry::get_template_list()
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::get_template_list")
|
||||
return std::set<std::string>();
|
||||
}
|
||||
|
||||
bool template_source_registry::has_template(const std::string& template_name)
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::has_template")
|
||||
return false;
|
||||
}
|
||||
|
||||
template_info template_source_registry::get_template_info(const std::string& template_name)
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::get_template_info")
|
||||
return template_info();
|
||||
}
|
||||
|
||||
bool template_source_registry::template_command_exists(const std::string& template_name, const std::string& command)
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::template_command_exists")
|
||||
return false;
|
||||
}
|
||||
|
||||
std::filesystem::path template_source_registry::get_cache_dir()
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::get_cache_dir")
|
||||
return std::filesystem::path();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// template_manager
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
void template_manager::list_templates() const {
|
||||
auto templates = get_template_list();
|
||||
|
||||
@ -214,10 +262,11 @@
|
||||
mSources.push_back(std::make_unique<template_source_registry>(url));
|
||||
}
|
||||
|
||||
std::cout << "Loaded " << mSources.size() << " template sources:" << std::endl;
|
||||
std::cout << "Template sources: ";
|
||||
for (const auto& source : mSources) {
|
||||
std::cout << source->get_description() << std::endl;
|
||||
std::cout << "[" << source->get_description() << "] ";
|
||||
}
|
||||
std::cout << std::endl;
|
||||
|
||||
mLoaded = true;
|
||||
}
|
||||
@ -303,34 +352,4 @@
|
||||
return instance;
|
||||
}
|
||||
|
||||
std::set<std::string> template_source_registry::get_template_list()
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::get_template_list")
|
||||
return std::set<std::string>();
|
||||
}
|
||||
|
||||
bool template_source_registry::has_template(const std::string& template_name)
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::has_template")
|
||||
return false;
|
||||
}
|
||||
|
||||
template_info template_source_registry::get_template_info(const std::string& template_name)
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::get_template_info")
|
||||
return template_info();
|
||||
}
|
||||
|
||||
bool template_source_registry::template_command_exists(const std::string& template_name, const std::string& command)
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::template_command_exists")
|
||||
return false;
|
||||
}
|
||||
|
||||
std::filesystem::path template_source_registry::get_cache_dir()
|
||||
{
|
||||
#pragma message("TODO: Implement template_source_registry::get_cache_dir")
|
||||
return std::filesystem::path();
|
||||
}
|
||||
|
||||
} // namespace dropshell
|
||||
|
Loading…
x
Reference in New Issue
Block a user