Smb content provider
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
using FileTime.App.Core;
|
||||
using FileTime.App.Core.Clipboard;
|
||||
using FileTime.ConsoleUI.App;
|
||||
using FileTime.ConsoleUI.App.UI;
|
||||
using FileTime.ConsoleUI.App.UI.Color;
|
||||
using FileTime.Core.Command;
|
||||
using FileTime.Core.Interactions;
|
||||
using FileTime.Core.Models;
|
||||
using FileTime.Core.Providers;
|
||||
using FileTime.Core.StateManagement;
|
||||
using FileTime.Providers.Local;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -19,37 +18,6 @@ namespace FileTime.ConsoleUI
|
||||
|
||||
public static void Main()
|
||||
{
|
||||
/* Console.Clear();
|
||||
for (var x = 0; x < 16; x++)
|
||||
{
|
||||
for (var y = 0; y < 16; y++)
|
||||
{
|
||||
var i = x * 16 + y;
|
||||
Console.Write("\u001b[48;5;{0}m{0,4}", i);
|
||||
Console.ResetColor();
|
||||
Console.Write(' ');
|
||||
}
|
||||
Console.WriteLine("\n");
|
||||
}
|
||||
return; */
|
||||
|
||||
/* var colors = new int[][]
|
||||
{
|
||||
new int[] {0,43,54},
|
||||
new int[] {255,0,0},
|
||||
new int[] {0,255,0},
|
||||
new int[] {0,0,255},
|
||||
};
|
||||
|
||||
foreach (var color in colors)
|
||||
{
|
||||
Console.Write($"\u001b[0m\u001b[48;2;{color[0]};{color[1]};{color[2]}mTESZT ");
|
||||
Console.WriteLine($"\u001b[0m\u001b[38;2;{color[0]};{color[1]};{color[2]}mTESZT");
|
||||
}
|
||||
|
||||
Console.WriteLine("\u001b[0m\u001b[48;5;0;38;5;14mASD");
|
||||
return; */
|
||||
|
||||
var serviceProvider = CreateServiceProvider();
|
||||
_logger = serviceProvider.GetService<ILogger<Program>>()!;
|
||||
|
||||
@@ -62,6 +30,7 @@ namespace FileTime.ConsoleUI
|
||||
|
||||
if (currentPossibleDirectory is IContainer container)
|
||||
{
|
||||
serviceProvider.GetService<TopContainer>();
|
||||
coloredConsoleRenderer.Clear();
|
||||
Console.CursorVisible = false;
|
||||
|
||||
@@ -103,10 +72,10 @@ namespace FileTime.ConsoleUI
|
||||
return DependencyInjection.RegisterDefaultServices()
|
||||
.AddLogging(/* (builder) => builder.AddConsole().AddDebug() */)
|
||||
.AddSingleton<Application>()
|
||||
|
||||
.AddSingleton<IStyles>(new Styles(IsAnsiColorSupported()))
|
||||
.AddSingleton<IColoredConsoleRenderer, ColoredConsoleRenderer>()
|
||||
.AddSingleton<ConsoleReader>()
|
||||
.AddSingleton<IInputInterface, ConsoleInputInterface>()
|
||||
|
||||
.AddTransient<Render>()
|
||||
.RegisterCommandHandlers()
|
||||
|
||||
Reference in New Issue
Block a user