-
-
Notifications
You must be signed in to change notification settings - Fork 6
R eslava.result flow #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R eslava.result flow #459
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Just later | ||
|
|
||
| ## Latest Update : 2026-02-15 => 15 February 2026 | ||
| ## Latest Update : 2026-03-18 => 18 March 2026 | ||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,42 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "$schema": "https://aka.ms/codetour-schema", | ||||||||||||||||||||||||||||||||||||||||||||||
| "title": "REslava.ResultFlow", | ||||||||||||||||||||||||||||||||||||||||||||||
| "steps": | ||||||||||||||||||||||||||||||||||||||||||||||
| [ | ||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||
| "file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/ResultFlowGenerator.csproj", | ||||||||||||||||||||||||||||||||||||||||||||||
| "description": "First, we add Nuget [REslava.ResultFlow](https://www.nuget.org/packages/REslava.ResultFlow/) in csproj ", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pattern": "REslava.ResultFlow" | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ,{ | ||||||||||||||||||||||||||||||||||||||||||||||
| "file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/Helpers.cs", | ||||||||||||||||||||||||||||||||||||||||||||||
| "description": "File Helpers.cs ", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pattern": "this is the code" | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ,{ | ||||||||||||||||||||||||||||||||||||||||||||||
| "file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/Program.cs", | ||||||||||||||||||||||||||||||||||||||||||||||
| "description": "File Program.cs \r\n>> dotnet run --project rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/ResultFlowGenerator.csproj ", | ||||||||||||||||||||||||||||||||||||||||||||||
| "pattern": "this is the code" | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ,{ | ||||||||||||||||||||||||||||||||||||||||||||||
| "file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/obj/GX/REslava.ResultFlow/REslava.ResultFlow.Generators.ResultFlow.ResultFlowGenerator/ResultFlowAttribute.g.cs", | ||||||||||||||||||||||||||||||||||||||||||||||
| "description": "Generated File 2 from 2 : ResultFlowAttribute.g.cs ", | ||||||||||||||||||||||||||||||||||||||||||||||
| "line": 1 | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ,{ | ||||||||||||||||||||||||||||||||||||||||||||||
| "file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/obj/GX/REslava.ResultFlow/REslava.ResultFlow.Generators.ResultFlow.ResultFlowGenerator/Helpers_Flows.g.cs", | ||||||||||||||||||||||||||||||||||||||||||||||
| "description": "Generated File 1 from 2 : Helpers_Flows.g.cs ", | ||||||||||||||||||||||||||||||||||||||||||||||
| "line": 1 | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+26
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generated file descriptions are numbered backwards. The step descriptions show "Generated File 2 from 2" (line 28) before "Generated File 1 from 2" (line 34), which is confusing. Consider swapping the numbering to reflect the natural order. 📝 Proposed fix ,{
"file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/obj/GX/REslava.ResultFlow/REslava.ResultFlow.Generators.ResultFlow.ResultFlowGenerator/ResultFlowAttribute.g.cs",
- "description": "Generated File 2 from 2 : ResultFlowAttribute.g.cs ",
+ "description": "Generated File 1 from 2 : ResultFlowAttribute.g.cs ",
"line": 1
}
,{
"file": "rscg_examples/REslava.ResultFlow/src/ResultFlowGenerator/obj/GX/REslava.ResultFlow/REslava.ResultFlow.Generators.ResultFlow.ResultFlowGenerator/Helpers_Flows.g.cs",
- "description": "Generated File 1 from 2 : Helpers_Flows.g.cs ",
+ "description": "Generated File 2 from 2 : Helpers_Flows.g.cs ",
"line": 1
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| "ref": "main" | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -154,8 +154,11 @@ public string[] SourceNoRSCG() | |||||||||
| text = text.Replace("(docs/rules/", $"({d.Generator!.Source}/docs/rules/"); | ||||||||||
| text = text.Replace("(CHANGELOG.md", $"({d.Generator!.Source}/CHANGELOG.md"); | ||||||||||
| text = text.Replace("(/.github/CONTRIBUTING.md)", $"({d.Generator!.Source}/.github/CONTRIBUTING.md)"); | ||||||||||
| text = text.Replace("{reasonPhrase}", "`{reasonPhrase`}"); | ||||||||||
| text = text.Replace("{code}", "`{code`}"); | ||||||||||
|
Comment on lines
+157
to
+158
|
||||||||||
| text = text.Replace("{reasonPhrase}", "`{reasonPhrase`}"); | |
| text = text.Replace("{code}", "`{code`}"); | |
| text = text.Replace("{reasonPhrase}", "`{reasonPhrase}`"); | |
| text = text.Replace("{code}", "`{code}`"); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,7 @@ public enum Category | |
| MCP= 42, | ||
| Bool=43, | ||
| Profiler=44, | ||
| Idempotency=45 | ||
| Idempotency=45, | ||
| Documentation=46, | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
|
|
||
| <h1>RSCG nr 258 : REslava.ResultFlow</h1> | ||
|
|
||
| <h2>Info</h2> | ||
| Nuget : <a href="https://www.nuget.org/packages/REslava.ResultFlow/" target="_blank">https://www.nuget.org/packages/REslava.ResultFlow/</a> | ||
|
|
||
| <p>You can find more details at : <a href="https://github.com/reslava/nuget-package-reslava-result/" target="_blank"> https://github.com/reslava/nuget-package-reslava-result/</a></p> | ||
|
|
||
| <p>Author :Rafa Eslava</p> | ||
|
|
||
| <p>Source: <a href="https://github.com/reslava/nuget-package-reslava-result/" target="_blank">https://github.com/reslava/nuget-package-reslava-result/</a> </p> | ||
|
|
||
| <h2>About</h2> | ||
|
|
||
| Functional Code as Mermaid diagrams | ||
|
|
||
| <h2> | ||
| How to use | ||
| </h2> | ||
| <h3> | ||
| Add reference to the <a href="https://www.nuget.org/packages/REslava.ResultFlow/" target="_blank">REslava.ResultFlow</a> in the csproj | ||
| </h3> | ||
| <img src="images/REslava.ResultFlow/ResultFlowGenerator.csproj.png" width="580" height="580" /> | ||
|
|
||
| <h3>This was for me the <b>starting</b> code</h3> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file Program.cs | ||
| <br /> | ||
| <img src="images/REslava.ResultFlow/csFiles/Program.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file Helpers.cs | ||
| <br /> | ||
| <img src="images/REslava.ResultFlow/csFiles/Helpers.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
| <h3>And here are the <i>generated</i> files</h3> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is Helpers_Flows.g.cs | ||
| <br /> | ||
| <img src="images/REslava.ResultFlow/generated/Helpers_Flows.g.cs.png" width="580" height="580" /> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is ResultFlowAttribute.g.cs | ||
| <br /> | ||
| <img src="images/REslava.ResultFlow/generated/ResultFlowAttribute.g.cs.png" width="580" height="580" /> | ||
|
|
||
| <p> | ||
| You can download the code and this page as pdf from | ||
| <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/REslava.ResultFlow'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/REslava.ResultFlow | ||
| </a> | ||
| </p> | ||
|
|
||
|
|
||
| <p> | ||
| You can see the whole list at | ||
| <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG | ||
| </a> | ||
| </p> | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "generator":{ | ||
| "name":"REslava.ResultFlow", | ||
| "nuget":[ | ||
| "https://www.nuget.org/packages/REslava.ResultFlow/" | ||
| ], | ||
| "link":"https://github.com/reslava/nuget-package-reslava-result/", | ||
| "author":"Rafa Eslava", | ||
| "source":"https://github.com/reslava/nuget-package-reslava-result/" | ||
| }, | ||
| "data":{ | ||
| "goodFor":["Functional Code as Mermaid diagrams"], | ||
| "csprojDemo":"ResultFlowGenerator.csproj", | ||
| "csFiles":["Program.cs","Helpers.cs"], | ||
| "excludeDirectoryGenerated":[""], | ||
| "includeAdditionalFiles":[""] | ||
| }, | ||
| "links":{ | ||
| "blog":"", | ||
| "video":"" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Source generator that auto-generates Mermaid pipeline diagrams at compile time for any Result library. Add [ResultFlow] to any fluent method and get a generated const string diagram — zero runtime overhead, zero manual maintenance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the future-dated metadata.
These entries say the latest update and generated date are March 18, 2026, but this PR was opened on March 8, 2026. Shipping docs with future dates will make the catalog look incorrect for ten days and usually means the generation date source is off.
Also applies to: 31-31
🤖 Prompt for AI Agents