diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-04-03 18:06:45 -0400 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-04-04 11:57:11 -0400 | 
| commit | 5bd8cbc86ab1236d4e891e0711e9a3623f0c51a7 (patch) | |
| tree | 9dd42fb198d50d4cd6fa1582c965c2536f69efeb /src/doc_reform/spine.d | |
| parent | latex doc headers moved to .sty files in ./sty dir (diff) | |
generated-by header, latex, html, epub
- consider, implementation quite messy
Diffstat (limited to 'src/doc_reform/spine.d')
| -rwxr-xr-x | src/doc_reform/spine.d | 21 | 
1 files changed, 20 insertions, 1 deletions
| diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d index 563de48..06b483c 100755 --- a/src/doc_reform/spine.d +++ b/src/doc_reform/spine.d @@ -762,6 +762,25 @@ string program_name = "spine";            bits, os,          );        } +      @trusted string name_and_version() { +        return format("%s-%s", name, ver); +      } +      @trusted string name_version_and_compiler() { +        return format("%s-%s (%s)", name, ver, compiler); +      } +      @safe auto time_output_generated() { +        auto _st = Clock.currTime(UTC()); +        auto _t  = TimeOfDay(_st.hour, _st.minute, _st.second); +        auto _time = _st.year.to!string +          ~ "-" ~ _st.month.to!int.to!string // prefer as month number +          ~ "-" ~ _st.day.to!string +          ~ " [" ~ _st.isoWeek.to!string ~ "/" ~ _st.dayOfWeek.to!int.to!string ~ "]" +          ~ " - " ~ _t.toISOExtString +          // ~ " " ~ _st.hour.to!string ~ ":" ~ _st.minute.to!string ~ ":" ~ _st.second.to!string +          ~ " UTC"; +        return _time; +        // return _st.toISOExtString(); +      }      }      return ProgramInfo();    } @@ -978,7 +997,7 @@ string program_name = "spine";    && _opt_action.abstraction) {      /+ ↓ output hub +/      if (!(_opt_action.skip_output)) { -      outputHubInitialize!()(_opt_action); +      outputHubInitialize!()(_opt_action, program_info);      }      if (_opt_action.parallelise) {                     // see else        import std.parallelism; | 
