Updated display features

This commit is contained in:
2022-07-17 14:21:16 +03:00
parent b8ec6f42df
commit c415fa1c0c
16 changed files with 242 additions and 177 deletions

View File

@@ -5,7 +5,7 @@ using PluginManager.Others;
namespace PluginManager.Items;
internal class Command
public class Command
{
/// <summary>
/// The author of the command
@@ -20,10 +20,7 @@ internal class Command
{
Author = message.Author;
var data = message.Content.Split(' ');
if (data.Length > 1)
Arguments = new List<string>(data.MergeStrings(1).Split(' '));
else
Arguments = new List<string>();
Arguments = data.Length > 1 ? new List<string>(data.MergeStrings(1).Split(' ')) : new List<string>();
CommandName = data[0].Substring(1);
PrefixUsed = data[0][0];
}

View File

@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;
@@ -48,7 +47,7 @@ public class ConsoleCommandsHandler
}
items.Add(new[] { "-", "-", "-" });
Console_Utilities.FormatAndAlignTable(items);
Console_Utilities.FormatAndAlignTable(items, TableFormat.DEFAULT);
}
else
{
@@ -147,7 +146,7 @@ public class ConsoleCommandsHandler
{
Console.WriteLine($"Downloading requirements for plugin : {name}");
var lines = await ServerCom.ReadTextFromFile(info[2]);
var lines = await ServerCom.ReadTextFromURL(info[2]);
foreach (var line in lines)
{