Major refactor

This commit is contained in:
j
2025-12-30 08:43:06 +13:00
parent a9ccdedf89
commit b0d11eb08c
10 changed files with 84 additions and 177 deletions

View File

@@ -32,11 +32,6 @@ namespace dropshell
return (servicepath.empty() ? "" : (fs::path(servicepath) / filenames::service_env).string());
}
std::string template_example()
{
return localpath::agent_local() + "/template_example";
}
std::string bb64()
{
return localpath::agent_local() + "/bb64";
@@ -114,6 +109,12 @@ namespace dropshell
return dropshell_dir() + "/template_cache";
}
std::string template_example()
{
return agent_local() + "/template_example";
}
bool create_directories()
{
std::vector<std::filesystem::path> paths = {

View File

@@ -53,7 +53,6 @@ namespace dropshell {
std::string dropshell_json();
std::string server_json(const std::string &server_name);
std::string service_env(const std::string &server_name, const std::string &service_name);
std::string template_example();
std::string bb64();
} // namespace localfile
@@ -68,6 +67,8 @@ namespace dropshell {
std::string current_user_home();
std::string user_local_bin(); // ~/.local/bin directory for user executables
std::string template_example();
std::string backups();
std::string temp_files();
std::string template_cache();