Removed Renci.SshNet
This commit is contained in:
@ -110,49 +110,51 @@ internal static partial class Helper20250204
|
||||
{
|
||||
}
|
||||
|
||||
private static string[] GetTaskLines(string directory, string rootDirectory) =>
|
||||
[
|
||||
"{",
|
||||
"\"version\": \"2.0.0\",",
|
||||
"\"tasks\": [",
|
||||
"{",
|
||||
"\"label\": \"File-Folder-Helper AOT s X Day-Helper-2025-02-04\",",
|
||||
"\"type\": \"shell\",",
|
||||
"\"command\": \"L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe\",",
|
||||
"\"args\": [",
|
||||
"\"s\",",
|
||||
"\"X\",",
|
||||
$"\"{directory}\",",
|
||||
"\"Day-Helper-2025-02-04\",",
|
||||
$"\"{rootDirectory}\",",
|
||||
"],",
|
||||
"\"problemMatcher\": []",
|
||||
"},",
|
||||
"{",
|
||||
"\"label\": \"File-Folder-Helper AOT s X Day-Helper-2024-06-23\",",
|
||||
"\"type\": \"shell\",",
|
||||
"\"command\": \"L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe\",",
|
||||
"\"args\": [",
|
||||
"\"s\",",
|
||||
"\"X\",",
|
||||
$"\"{directory}\",",
|
||||
"\"Day-Helper-2024-06-23\",",
|
||||
"\"*.md\",",
|
||||
"\"##_Sub-tasks\",",
|
||||
"\"-_[code-insiders](\",",
|
||||
"\"index.md\",",
|
||||
"\"-_[,](\",",
|
||||
"\"##_Done\",",
|
||||
"\".kan\",",
|
||||
$"\"{rootDirectory}\",",
|
||||
"\"316940400000\",",
|
||||
"],",
|
||||
"\"problemMatcher\": []",
|
||||
"}",
|
||||
"]",
|
||||
"}",
|
||||
];
|
||||
|
||||
private static string GetTaskText(string directory, string rootDirectory) =>
|
||||
string.Join(Environment.NewLine,
|
||||
[
|
||||
"{",
|
||||
"\"version\": \"2.0.0\",",
|
||||
"\"tasks\": [",
|
||||
"{",
|
||||
"\"label\": \"File-Folder-Helper AOT s X Day-Helper-2025-02-04\",",
|
||||
"\"type\": \"shell\",",
|
||||
"\"command\": \"L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe\",",
|
||||
"\"args\": [",
|
||||
"\"s\",",
|
||||
"\"X\",",
|
||||
$"\"{directory}\",",
|
||||
"\"Day-Helper-2025-02-04\",",
|
||||
$"\"{rootDirectory}\",",
|
||||
"],",
|
||||
"\"problemMatcher\": []",
|
||||
"},",
|
||||
"{",
|
||||
"\"label\": \"File-Folder-Helper AOT s X Day-Helper-2024-06-23\",",
|
||||
"\"type\": \"shell\",",
|
||||
"\"command\": \"L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe\",",
|
||||
"\"args\": [",
|
||||
"\"s\",",
|
||||
"\"X\",",
|
||||
$"\"{directory}\",",
|
||||
"\"Day-Helper-2024-06-23\",",
|
||||
"\"*.md\",",
|
||||
"\"##_Sub-tasks\",",
|
||||
"\"-_[code-insiders](\",",
|
||||
"\"index.md\",",
|
||||
"\"-_[,](\",",
|
||||
"\"##_Done\",",
|
||||
"\".kan\",",
|
||||
$"\"{rootDirectory}\",",
|
||||
"\"316940400000\",",
|
||||
"],",
|
||||
"\"problemMatcher\": []",
|
||||
"}",
|
||||
"]",
|
||||
"}",
|
||||
]);
|
||||
string.Join(Environment.NewLine, GetTaskLines(directory, rootDirectory));
|
||||
|
||||
private static void WriteTaskFile(string sourceDirectory, string rootDirectory)
|
||||
{
|
||||
@ -169,34 +171,36 @@ internal static partial class Helper20250204
|
||||
private static string GetFilter(ReadOnlyCollection<H1ParamCaseAndState> collection, string filter) =>
|
||||
string.Join(Environment.NewLine, from l in collection where l.State == filter select $"- [{l.ParamCase}](tasks/{l.ParamCase}.md)");
|
||||
|
||||
private static string[] GetIndexLines(WorkItem workItem, H1ParamCaseAndState h1ParamCaseAndState, ReadOnlyCollection<H1ParamCaseAndState> collection) =>
|
||||
[
|
||||
"---",
|
||||
"startedColumns:",
|
||||
" - 'In Progress'",
|
||||
"completedColumns:",
|
||||
" - Done",
|
||||
"---",
|
||||
string.Empty,
|
||||
$"# {workItem.Id} - {h1ParamCaseAndState.H1}",
|
||||
string.Empty,
|
||||
"## Backlog",
|
||||
string.Empty,
|
||||
GetFilter(collection, "Backlog"),
|
||||
string.Empty,
|
||||
"## Todo",
|
||||
string.Empty,
|
||||
GetFilter(collection, "ToDo"),
|
||||
string.Empty,
|
||||
"## In Progress",
|
||||
string.Empty,
|
||||
GetFilter(collection, "In Progress"),
|
||||
string.Empty,
|
||||
"## Done",
|
||||
string.Empty,
|
||||
GetFilter(collection, "Done"),
|
||||
string.Empty
|
||||
];
|
||||
private static string GetIndexText(WorkItem workItem, H1ParamCaseAndState h1ParamCaseAndState, ReadOnlyCollection<H1ParamCaseAndState> collection) =>
|
||||
string.Join(Environment.NewLine, [
|
||||
"---",
|
||||
"startedColumns:",
|
||||
" - 'In Progress'",
|
||||
"completedColumns:",
|
||||
" - Done",
|
||||
"---",
|
||||
string.Empty,
|
||||
$"# {workItem.Id} - {h1ParamCaseAndState.H1}",
|
||||
string.Empty,
|
||||
"## Backlog",
|
||||
string.Empty,
|
||||
GetFilter(collection, "Backlog"),
|
||||
string.Empty,
|
||||
"## Todo",
|
||||
string.Empty,
|
||||
GetFilter(collection, "ToDo"),
|
||||
string.Empty,
|
||||
"## In Progress",
|
||||
string.Empty,
|
||||
GetFilter(collection, "In Progress"),
|
||||
string.Empty,
|
||||
"## Done",
|
||||
string.Empty,
|
||||
GetFilter(collection, "Done"),
|
||||
string.Empty
|
||||
]);
|
||||
string.Join(Environment.NewLine, GetIndexLines(workItem, h1ParamCaseAndState, collection));
|
||||
|
||||
private static string GetIndexMarkdown(FileInfo fileInfo, ReadOnlyCollection<WorkItem> workItems)
|
||||
{
|
||||
|
Reference in New Issue
Block a user