Formatted code and rebuilt PluginLoader
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PluginManager\PluginManager.csproj" />
|
||||
<ProjectReference Include="..\PluginManager\PluginManager.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -6,13 +6,15 @@ using PluginManager.Plugin;
|
||||
|
||||
if (args.Length == 1)
|
||||
{
|
||||
PluginOnlineInfo? result = await JsonManager.ConvertFromJson<PluginOnlineInfo>(args[0]);
|
||||
var result = await JsonManager.ConvertFromJson<PluginOnlineInfo>(args[0]);
|
||||
// print all rows
|
||||
Console.WriteLine($"Name: {result.Name}");
|
||||
Console.WriteLine($"Version: {result.Version.ToShortString()}");
|
||||
Console.WriteLine($"Description: {result.Description}");
|
||||
Console.WriteLine($"Download link: {result.DownLoadLink}");
|
||||
Console.WriteLine($"Supported OS: {((result.SupportedOS & OSType.WINDOWS) != 0 ? "Windows" : "")} {((result.SupportedOS & OSType.LINUX) != 0 ? "Linux" : "")} {((result.SupportedOS & OSType.MACOSX) != 0 ? "MacOSX" : "")}");
|
||||
Console.WriteLine(
|
||||
$"Supported OS: {((result.SupportedOS & OSType.WINDOWS) != 0 ? "Windows" : "")} {((result.SupportedOS & OSType.LINUX) != 0 ? "Linux" : "")} {((result.SupportedOS & OSType.MACOSX) != 0 ? "MacOSX" : "")}"
|
||||
);
|
||||
Console.WriteLine($"Has dependencies: {result.HasDependencies}");
|
||||
Console.WriteLine($"Dependencies: {result.Dependencies.Count}");
|
||||
|
||||
@@ -65,4 +67,4 @@ List<PluginOnlineInfo> plugins =
|
||||
Directory.CreateDirectory("output");
|
||||
await JsonManager.SaveToJsonFile("./output/PluginsList.json", plugins);
|
||||
|
||||
Process.Start("notepad.exe", "./output/PluginsList.json");
|
||||
Process.Start("notepad.exe", "./output/PluginsList.json");
|
||||
|
||||
Reference in New Issue
Block a user