mirror of
https://github.com/dnwSilver/tld.git
synced 2024-11-25 16:42:07 +00:00
🐛 Fix bug.
This commit is contained in:
parent
044618e690
commit
a8bca447a2
@ -42,42 +42,7 @@ do
|
|||||||
key = Console.ReadKey(true);
|
key = Console.ReadKey(true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (display.CommandLine.IsFocused)
|
|
||||||
// {
|
|
||||||
// switch (key.Key)
|
|
||||||
// {
|
|
||||||
// case ConsoleKey.Escape:
|
|
||||||
// display.CommandLine.IsFocused = false;
|
|
||||||
// break;
|
|
||||||
// default:
|
|
||||||
// Console.Write(key.KeyChar);
|
|
||||||
//
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// switch (key.KeyChar)
|
|
||||||
// {
|
|
||||||
// case ':':
|
|
||||||
// display.OpenCommandLine();
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// switch (key.Key)
|
|
||||||
// {
|
|
||||||
// case ConsoleKey.DownArrow:
|
|
||||||
// display.Next();
|
|
||||||
// break;
|
|
||||||
// case ConsoleKey.UpArrow:
|
|
||||||
// display.Previous();
|
|
||||||
// break;
|
|
||||||
// case ConsoleKey.E:
|
|
||||||
// display.Toggle();
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
} while (waitCommand);
|
} while (waitCommand);
|
||||||
|
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
|
Console.CursorVisible = true;
|
@ -1,6 +1,5 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Nodes;
|
using System.Text.Json.Nodes;
|
||||||
using TUI.Controls.Components;
|
|
||||||
using TUI.Domain;
|
using TUI.Domain;
|
||||||
using YamlDotNet.Serialization;
|
using YamlDotNet.Serialization;
|
||||||
using YamlDotNet.Serialization.NamingConventions;
|
using YamlDotNet.Serialization.NamingConventions;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
using System.Diagnostics;
|
||||||
using TUI.Controls.Components;
|
using TUI.Controls.Components;
|
||||||
using TUI.Domain;
|
using TUI.Domain;
|
||||||
using TUI.Engine;
|
using TUI.Engine;
|
||||||
@ -9,31 +10,33 @@ namespace TUI.Store;
|
|||||||
public class DependenciesStore
|
public class DependenciesStore
|
||||||
{
|
{
|
||||||
public IEnumerable<Dependency> ConventionDependencies;
|
public IEnumerable<Dependency> ConventionDependencies;
|
||||||
|
|
||||||
public IEnumerable<Project> Projects;
|
public IEnumerable<Project> Projects;
|
||||||
|
|
||||||
private DependencyRepository Repository = new();
|
private DependencyRepository Repository = new();
|
||||||
|
|
||||||
public IEnumerable<Dependency> ActualDependencies(Project project)
|
public IEnumerable<Dependency> ActualDependencies(Project project)
|
||||||
{
|
{
|
||||||
SpeakerComponent.Instance.Shout(Symbols.Download.Info(), $"Fetch actual dependencies for project {project.Name.Main
|
SpeakerComponent.Instance.Shout(Symbols.Download.Info(),
|
||||||
()}");
|
$"Fetch actual dependencies for project {project.Name.Main()}");
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return Repository.ReadActual(project);
|
return Repository.ReadActual(project);
|
||||||
}
|
}
|
||||||
catch
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
|
Debugger.Log(0, "error", ex.Message);
|
||||||
SpeakerComponent.Instance.Shout(Symbols.Error.Error(), $"Fetch failed for project{project.Name}");
|
SpeakerComponent.Instance.Shout(Symbols.Error.Error(), $"Fetch failed for project{project.Name}");
|
||||||
return new List<Dependency>();
|
return new List<Dependency>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Bind()
|
public void Bind()
|
||||||
{
|
{
|
||||||
SpeakerComponent.Instance.Shout("🤔", "Prepare javascript conventions");
|
SpeakerComponent.Instance.Shout("🤔", "Prepare javascript conventions");
|
||||||
ConventionDependencies = Repository.ReadConventions("javascript");
|
ConventionDependencies = Repository.ReadConventions("javascript");
|
||||||
|
|
||||||
SpeakerComponent.Instance.Shout("🤩", "Prepare javascript projects");
|
SpeakerComponent.Instance.Shout("🤩", "Prepare javascript projects");
|
||||||
Projects = Repository.ReadProjects("javascript");
|
Projects = Repository.ReadProjects("javascript");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user