-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Program.cs
34 lines (33 loc) · 946 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using QuickInfo;
namespace Info
{
class Program
{
static void Main(string[] args)
{
var commandLine = string.Join(" ", args);
var engine = new Engine
(
typeof(Ascii),
typeof(Color),
typeof(QuickInfo.DateTime),
typeof(Emoticons),
typeof(Factor),
typeof(Hex),
typeof(HttpStatusCode),
typeof(QuickInfo.Math),
typeof(NumberList),
typeof(RandomGuid),
typeof(UnitConverter),
typeof(UrlDecode)
);
var query = new Query(commandLine);
var answers = engine.GetResults(query);
foreach (var answer in answers)
{
ConsoleRenderer.RenderObject(answer.processorName, answer.resultNode);
}
}
}
}