diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-12-08 13:05:35 -0500 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-01-13 16:06:43 -0500 | 
| commit | a8ec94f528d633fef6ab1d40a3c7564f38d15238 (patch) | |
| tree | 23b73dab3559d1ea447dde29d68123183cd89280 /src/doc_reform/io_in | |
| parent | xmls, home button fixes (diff) | |
src without pod.manifest, report on verbose
Diffstat (limited to 'src/doc_reform/io_in')
| -rw-r--r-- | src/doc_reform/io_in/paths_source.d | 21 | 
1 files changed, 12 insertions, 9 deletions
diff --git a/src/doc_reform/io_in/paths_source.d b/src/doc_reform/io_in/paths_source.d index fbb6d76..a460f7b 100644 --- a/src/doc_reform/io_in/paths_source.d +++ b/src/doc_reform/io_in/paths_source.d @@ -16,8 +16,9 @@ import  template PodManifest() {    mixin spineRgxInit;    static auto rgx = Rgx(); -  auto PodManifest(P)( -    P   _pth="" +  auto PodManifest(O)( +    O       _opt_actions, +    string  _pth=""    ) {      struct ManifestFile_ {        string pod_manifest_filename() { @@ -25,20 +26,22 @@ template PodManifest() {        }        string pod_manifest_path() {          string _manifest_path; -        if ((isValidPath(_pth) && exists(_pth)!=0 && _pth.isDir) -        && (exists(_pth.chainPath(pod_manifest_filename).array)!=0 +        if ((isValidPath(_pth) && exists(_pth) != 0 && _pth.isDir) +        && (exists(_pth.chainPath(pod_manifest_filename).array) != 0          && (_pth.chainPath(pod_manifest_filename).array).isFile)) {            _manifest_path = _pth;          } else if (_pth.match(rgx.src_pth_contents) -        && exists(_pth)!=0 && _pth.isFile) { +        && exists(_pth) != 0 && _pth.isFile) {            _manifest_path = _pth.dirName;          } else if (_pth.match(rgx.src_pth_pod_sst_or_ssm) -        && exists(_pth)!=0 && (_pth.isFile)) { +        && exists(_pth) != 0 && (_pth.isFile)) {            if (auto m = _pth.match(rgx.src_pth_pod_sst_or_ssm)) {              _manifest_path = m.captures["podpath"];            }          } else  { -          writeln("WARNING, issue with manifest_path: ", _pth); +          if (_opt_actions.verbose || _opt_actions.very_verbose || _opt_actions.debug_do) { +            writeln("WARNING, src is not a pod, issue with manifest_path: ", _pth); // remove? unless can distinguish pod +          }            _manifest_path = null; // _manifest_path = "";          }          return _manifest_path; @@ -75,7 +78,7 @@ template PathMatters() {      string   _fns              = "",      char[][] _manifest_fn_list = [[]],    ) { -    auto _manifested = PodManifest!()(_pth); +    auto _manifested = PodManifest!()(_opt_actions, _pth);      struct ManifestMatters_ {        auto env() {          auto _env = _env; @@ -792,7 +795,7 @@ template spinePathsPods() {        }        auto fn_pod_filelist(string fn_src) {          auto pod_root_ = pod_root(fn_src); -        auto _manifested = PodManifest!()(fn_src).pod_manifest_filename; +        auto _manifested = PodManifest!()(doc_matters.opt.action, fn_src).pod_manifest_filename;          auto pth_1_ = _manifested;          auto pth_2_ = ((pod_root(fn_src).filesystem_open_zpod.chainPath(_manifested)).asNormalizedPath).array;          struct _pods {  | 
