fast check for autocomplete!
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 1m17s
Build-Test-Publish / build (linux/arm64) (push) Successful in 2m47s

This commit is contained in:
2025-09-30 13:56:47 +13:00
parent 0643d4e80f
commit 8bf5583818
8 changed files with 1394 additions and 67 deletions

View File

@@ -43,7 +43,7 @@ class template_source_interface {
virtual ~template_source_interface() {}
virtual std::set<std::string> get_template_list() = 0;
virtual bool has_template(const std::string& template_name) = 0;
virtual template_info get_template_info(const std::string& template_name) = 0;
virtual template_info get_template_info(const std::string& template_name, bool fast=false) = 0;
virtual bool template_command_exists(const std::string& template_name,const std::string& command) = 0;
virtual std::string get_description() = 0;
@@ -57,7 +57,7 @@ class template_source_registry : public template_source_interface {
std::set<std::string> get_template_list();
bool has_template(const std::string& template_name);
template_info get_template_info(const std::string& template_name);
template_info get_template_info(const std::string& template_name, bool fast=false);
bool template_command_exists(const std::string& template_name,const std::string& command);
std::string get_description() { return "Registry: " + mRegistry.name + " (" + mRegistry.url + ")"; }
@@ -74,7 +74,7 @@ class template_source_local : public template_source_interface {
~template_source_local() {}
std::set<std::string> get_template_list();
bool has_template(const std::string& template_name);
template_info get_template_info(const std::string& template_name);
template_info get_template_info(const std::string& template_name, bool fast=false);
bool template_command_exists(const std::string& template_name,const std::string& command);
std::string get_description() { return "Local: " + mLocalPath.string(); }
@@ -89,7 +89,7 @@ class template_manager {
std::set<std::string> get_template_list() const;
bool has_template(const std::string& template_name) const;
template_info get_template_info(const std::string& template_name) const;
template_info get_template_info(const std::string& template_name, bool fast=false) const; // fast = don't check for updates.
bool template_command_exists(const std::string& template_name,const std::string& command) const;
bool create_template(const std::string& template_name) const;