-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.cs
39 lines (32 loc) · 1.08 KB
/
Constants.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
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.Json;
namespace InSysOut
{
internal static class Constants
{
internal static readonly string helpMsg = @"
Usage: oj Command
oj [options]
Options:
-h|--help Display help.
-i|--info Display OutputAsJson information.
-v|--version Display OutputAsJson version.
Command:
ls|dir List current directory content
Examples:
oj -h
oj ls
oj dir
Remark: [] above means optional. | above means or.
";
//internal static readonly string aMsg = @"";
internal static readonly string infoMsg = new StreamReader(System.Reflection.Assembly.GetExecutingAssembly()
.GetManifestResourceStream("InSysOut.ProductInfo.json")).ReadToEnd();
//internal static readonly string versionMsg = @"1.0.0";
internal static readonly string versionMsg = JsonDocument.Parse(infoMsg).RootElement.GetProperty("version").GetString();
internal static readonly string unknownInputMsg = "Wrong/Unknown Input";
}
}