change 'example' to 'config'.

This commit is contained in:
Your Name
2025-05-04 14:05:14 +12:00
parent 5286ec542a
commit 0bc78f353f
9 changed files with 23 additions and 73 deletions

View File

@@ -32,7 +32,7 @@ namespace dropshell {
// | |-- <template_name>
// | |-- (...script files...)
// | |-- _default.env
// | |-- example
// | |-- config
// | |-- service.env
// | |-- .template_info.env
// | |-- (...other service config files...)
@@ -68,7 +68,7 @@ namespace dropshell {
// |-- service.env
// |-- template
// |-- (script files)
// |-- example
// |-- config
// |-- service.env
// |-- (other config files for specific server&service)

View File

@@ -1,36 +0,0 @@
#include "readmes.hpp"
#include <fstream>
#include <filesystem>
void dropshell::create_readme_local_config_dir(const std::string &readme_path)
{
if (std::filesystem::exists(readme_path))
return; // already exists
std::ofstream readme_file(readme_path);
// use heredoc to write the readme
readme_file << R"(
use this directory to store your local config files for your servers and services.
dropshell create-server <server_name>
dropshell create-template <template_name>
dropshell create-service <server_name> <template_name> <service_name>
config_path
|-- servers
| |-- server_name
| |-- server.env
| |-- services
| |-- service_name
| |-- service.env
| |-- (other config files for specific server&service)
|-- templates
| |-- template_name
| |-- (script files)
| |-- example
| |-- service.env
| |-- (other service config files)
)" << std::endl;
readme_file.close();
}

View File

@@ -1,12 +0,0 @@
#ifndef READMES_HPP
#define READMES_HPP
#include <string>
namespace dropshell {
void create_readme_local_config_dir(const std::string &readme_path);
} // namespace dropshell
#endif