change 'example' to 'config'.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
@@ -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();
|
||||
}
|
@@ -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
|
Reference in New Issue
Block a user