public static Dictionary <FS.FilePath, Dictionary <string, string> > collect(IWfRuntime wf) { var src = pull(wf); var dst = new Dictionary <FS.FilePath, Dictionary <string, ApiComment> >(); foreach (var part in src.Keys) { var id = part.FileName.WithoutExtension.Name; var path = wf.Db().Table <ApiComment>(id, FS.Csv); var flow = wf.EmittingTable <ApiComment>(path); var docs = new Dictionary <string, ApiComment>(); dst[part] = docs; using var writer = path.Writer(); var kvp = src[part]; foreach (var key in kvp.Keys) { var member = parse(key, kvp[key]).OnSuccess(d => docs[d.Identifer] = d); if (member.Succeeded) { writer.WriteLine(format(member.Value)); } } wf.EmittedTable(flow, kvp.Count); } return(src); }
public static V create(IWfRuntime wf, IPolySource src) { var service = create(wf); service.Source = src; return(service); }
public EmitEnumsStep(IWfRuntime wf, WfHost host, ClrAssemblyAdapter src) { Wf = wf; Host = host; Source = src; Target = Wf.Db().Table(ClrEnumRecord.TableId, Source.Part); Records = default; }
public static BitCmdHost BitCmd(this IWfRuntime wf) => BitCmdHost.create(wf);