aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_in/read_config_files.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-01-05 20:17:17 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2020-02-11 13:08:49 -0500
commitde02319cfa7b4bbff8c111bda02be1a7c6591555 (patch)
tree732c11d10bc2699cd1b72d00b3be943284eea130 /src/doc_reform/io_in/read_config_files.d
parentreduce use of auto, much with tuples (diff)
dlang safe default imminent, look ahead
- @safe @trusted & @system, reconsider @trusted
Diffstat (limited to 'src/doc_reform/io_in/read_config_files.d')
-rw-r--r--src/doc_reform/io_in/read_config_files.d14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/doc_reform/io_in/read_config_files.d b/src/doc_reform/io_in/read_config_files.d
index 1f6faa3..ce16f24 100644
--- a/src/doc_reform/io_in/read_config_files.d
+++ b/src/doc_reform/io_in/read_config_files.d
@@ -14,7 +14,7 @@ static template readConfigSite() {
std.file,
std.path;
mixin spineRgxInit;
- final auto readConfigSite(C)(C _conf_file_details) {
+ @system final auto readConfigSite(C)(C _conf_file_details) {
static auto rgx = Rgx();
string conf_filename = "NONE";
string config_file_str;
@@ -119,7 +119,7 @@ static template readConfigDoc() {
std.file,
std.path;
mixin spineRgxInit;
- final auto readConfigDoc(M,E)(M _manifested, E _env) {
+ @system final auto readConfigDoc(M,E)(M _manifested, E _env) {
static auto rgx = Rgx();
string config_file_str;
string conf_filename = "NONE";
@@ -146,13 +146,13 @@ static template readConfigDoc() {
if (config_file_str.length > 0) { break; }
}
struct _ConfContent {
- string filename() {
+ @safe string filename() {
return conf_filename;
}
- string content() {
+ @safe string content() {
return config_file_str;
}
- string filetype() {
+ @safe string filetype() {
string _ft = "";
if (content.match(rgx.yaml_config)) {
_ft = "yaml";
@@ -169,7 +169,7 @@ static template configReadSiteYAML() {
doc_reform.io_in.paths_source,
std.file,
std.path;
- final YAMLDocument configReadSiteYAML(M,E)(M _manifested, E _env) {
+ @safe final YAMLDocument configReadSiteYAML(M,E)(M _manifested, E _env) {
string _configuration = configReadInSiteYAML!()(_manifested, _env);
auto _conf_file_details = ConfigFilePaths!()(_manifested, _env);
string _conf_yaml_fn = _conf_file_details.config_filename_site;
@@ -183,7 +183,7 @@ static template configReadDocYAML() {
doc_reform.io_in.paths_source,
std.file,
std.path;
- final YAMLDocument configReadDocYAML(M,E)(M _manifested, E _env) {
+ @safe final YAMLDocument configReadDocYAML(M,E)(M _manifested, E _env) {
string _configuration = configReadInDocYAML!()(_manifested, _env);
auto _conf_file_details = ConfigFilePaths!()(_manifested, _env);
string _conf_yaml_fn = _conf_file_details.config_filename_document;