Changed trigger for code-insiders
This commit is contained in:
parent
9d612d3d3d
commit
930963965d
@ -42,18 +42,17 @@ internal static partial class Helper20240623
|
|||||||
private static Record GetRecord(Input input, FileInfo fileInfo)
|
private static Record GetRecord(Input input, FileInfo fileInfo)
|
||||||
{
|
{
|
||||||
Record result;
|
Record result;
|
||||||
|
string line;
|
||||||
int? stopLine = null;
|
int? stopLine = null;
|
||||||
int? subTasksLine = null;
|
int? subTasksLine = null;
|
||||||
int? codeInsidersLine = null;
|
int? codeInsidersLine = null;
|
||||||
LineNumber lineNumber = HelperMarkdown.GetLineNumbers(fileInfo);
|
LineNumber lineNumber = HelperMarkdown.GetLineNumbers(fileInfo);
|
||||||
for (int i = 0; i < lineNumber.Lines.Count; i++)
|
for (int i = 0; i < lineNumber.Lines.Count; i++)
|
||||||
{
|
{
|
||||||
if (lineNumber.Lines[i].StartsWith(input.CodeInsiders) && lineNumber.Lines[i][^1] == '"')
|
line = lineNumber.Lines[i];
|
||||||
{
|
if (line.StartsWith(input.CodeInsiders) && line[^1] == ')')
|
||||||
if (lineNumber.Lines.Count > i + 1 && lineNumber.Lines[i + 1] == "```")
|
|
||||||
codeInsidersLine = i;
|
codeInsidersLine = i;
|
||||||
}
|
if (line != input.SubTasks)
|
||||||
if (lineNumber.Lines[i] != input.SubTasks)
|
|
||||||
continue;
|
continue;
|
||||||
subTasksLine = i;
|
subTasksLine = i;
|
||||||
if (codeInsidersLine is null)
|
if (codeInsidersLine is null)
|
||||||
@ -242,7 +241,7 @@ internal static partial class Helper20240623
|
|||||||
"Day-Helper-2024-06-23",
|
"Day-Helper-2024-06-23",
|
||||||
"*.md",
|
"*.md",
|
||||||
"##_Sub-tasks",
|
"##_Sub-tasks",
|
||||||
"code-insiders",
|
"-_[code-insiders](",
|
||||||
"index.md",
|
"index.md",
|
||||||
"-_[,](",
|
"-_[,](",
|
||||||
"##_Done",
|
"##_Done",
|
||||||
@ -376,9 +375,9 @@ internal static partial class Helper20240623
|
|||||||
string indexFile = args[5];
|
string indexFile = args[5];
|
||||||
string searchPattern = args[2];
|
string searchPattern = args[2];
|
||||||
string directoryFilter = args[8];
|
string directoryFilter = args[8];
|
||||||
string codeInsiders = $"{args[4]} \"";
|
|
||||||
string done = args[7].Replace('_', ' ');
|
string done = args[7].Replace('_', ' ');
|
||||||
string subTasks = args[3].Replace('_', ' ');
|
string subTasks = args[3].Replace('_', ' ');
|
||||||
|
string codeInsiders = args[4].Replace('_', ' ');
|
||||||
string sourceDirectory = Path.GetFullPath(args[0]);
|
string sourceDirectory = Path.GetFullPath(args[0]);
|
||||||
string? destinationDirectory = args.Count < 8 ? null : Path.GetFullPath(args[9]);
|
string? destinationDirectory = args.Count < 8 ? null : Path.GetFullPath(args[9]);
|
||||||
long? afterEpochTotalMilliseconds = args.Count < 9 ? null : long.Parse(args[10]);
|
long? afterEpochTotalMilliseconds = args.Count < 9 ? null : long.Parse(args[10]);
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<PackageReference Include="MetadataExtractor" Version="2.8.1" />
|
<PackageReference Include="MetadataExtractor" Version="2.8.1" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
|
||||||
<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="8.0.11" />
|
<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="8.0.12" />
|
||||||
<PackageReference Include="SSH.NET" Version="2024.2.0" />
|
<PackageReference Include="SSH.NET" Version="2024.2.0" />
|
||||||
<PackageReference Include="System.Text.Json" Version="8.0.5" />
|
<PackageReference Include="System.Text.Json" Version="8.0.5" />
|
||||||
<PackageReference Include="TextCopy" Version="6.2.1" />
|
<PackageReference Include="TextCopy" Version="6.2.1" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user