Skip to content

Commit 58e7a87

Browse files
Update README.md
1 parent f3988dd commit 58e7a87

File tree

9 files changed

+914
-1628
lines changed

9 files changed

+914
-1628
lines changed

CSharpInteractive.Tests/README_TEMPLATE.md

Lines changed: 447 additions & 807 deletions
Large diffs are not rendered by default.

CSharpInteractive.Tests/README_TEMPLATE.tt

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,27 @@
138138
#>
139139

140140
<#
141-
foreach (var info in infos.OrderBy(i => i["tag"] + i["priority"]).Where(info => info["visible"] == "true"))
141+
foreach (var group in infos.Where(info => info["visible"] == "true").GroupBy(i => i["tag"]).OrderBy(i => i.Key))
142142
{
143-
var file = info["file"];
144-
var body = info["body"];
145-
File.WriteAllText(Path.Combine(commentsDir, Path.GetFileNameWithoutExtension(file) + ".txt"), body);
146-
#>### <#= info["description"] #>
143+
var groupNameIndex = group.Key.IndexOf(' ');
144+
var groupName = group.Key.Substring(groupNameIndex + 1, group.Key.Length - groupNameIndex - 1);
145+
#>
146+
## <#= groupName #>
147147

148+
<#
149+
foreach (var info in group.OrderBy(i => i["priority"] + "_" + i["description"]))
150+
{
151+
var file = info["file"];
152+
var body = info["body"];
153+
File.WriteAllText(Path.Combine(commentsDir, Path.GetFileNameWithoutExtension(file) + ".txt"), body);
154+
#>
155+
### <#= info["description"] #>
148156
<#= info["header"] #>
149-
150157
``` CSharp
151158
<#= body #>```
152-
153159
<#= info["footer"] #>
154-
155160
<#
161+
}
156162
}
157163

158164
var readmeBodyFile = Path.Combine(solutionPath, "README_BODY.md");

CSharpInteractive.Tests/UsageScenarios/ArgsScenario.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void Run()
88
// $visible=true
99
// $tag=02 Arguments and parameters
1010
// $priority=00
11-
// $description=Command line argsyments
11+
// $description=Command line arguments
1212
// $header=_Args_ have got from the script arguments.
1313
// {
1414
if (Args.Count > 0)

CSharpInteractive.Tests/UsageScenarios/DotNetAddReferenceScenario.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Run()
2727
// $visible=true
2828
// $tag=07 .NET CLI
2929
// $priority=01
30-
// $description=Adding a NuGet package
30+
// $description=Adding project-to-project (P2P) references
3131
// {
3232
// ## using HostApi;
3333

CSharpInteractive.Tests/UsageScenarios/DotNetNewScenario.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void Run()
1515
// $visible=true
1616
// $tag=07 .NET CLI
1717
// $priority=01
18-
// $description=Createing a new project, configuration file, or solution based on the specified template
18+
// $description=Creating a new project, configuration file, or solution based on the specified template
1919
// {
2020
// ## using HostApi;
2121

CSharpInteractive.Tests/UsageScenarios/DotNetNuGetRemoveSourceScenario.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Run()
2626
// $visible=true
2727
// $tag=07 .NET CLI
2828
// $priority=01
29-
// $description=Removing a NuGet source.
29+
// $description=Removing an existing source from your NuGet configuration files
3030
// {
3131
// ## using HostApi;
3232

CSharpInteractive.Tests/UsageScenarios/DotNetSlnRemoveScenario.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void Run()
4040
// $visible=true
4141
// $tag=07 .NET CLI
4242
// $priority=01
43-
// $description=Adding projects to the solution file
43+
// $description=Removing a project or multiple projects from the solution file
4444
// {
4545
// ## using HostApi;
4646

CSharpInteractive.Tests/UsageScenarios/DotNetToolUpdateScenario.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public void Run()
2525
// $visible=true
2626
// $tag=07 .NET CLI
2727
// $priority=01
28-
// $description=Installing the specified .NET tool
28+
// $description=Updating the specified .NET tool
2929
// {
3030
// ## using HostApi;
3131

0 commit comments

Comments
 (0)