summaryrefslogtreecommitdiff
path: root/dsa/DSALib/Auxiliary/CommandInfo.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-11 23:38:13 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-11 23:38:13 +0200
commit2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (patch)
treec3b34ccb2737e347a73768536895cbbaab13cc01 /dsa/DSALib/Auxiliary/CommandInfo.cs
parentec991104f56e90d7bb2878da2fe6ed4e585dfc46 (diff)
parentaf74efccf8d21e6151022b71f3cacd3fa83024ee (diff)
Merge branch 'rework-backend'
Diffstat (limited to 'dsa/DSALib/Auxiliary/CommandInfo.cs')
-rw-r--r--dsa/DSALib/Auxiliary/CommandInfo.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/dsa/DSALib/Auxiliary/CommandInfo.cs b/dsa/DSALib/Auxiliary/CommandInfo.cs
new file mode 100644
index 0000000..d8e2188
--- /dev/null
+++ b/dsa/DSALib/Auxiliary/CommandInfo.cs
@@ -0,0 +1,28 @@
+using System.Linq;
+
+namespace DSALib.Auxiliary
+{
+ public struct CommandInfo
+ {
+ public CommandInfo(string name, string brief, string[] description, string scope)
+ {
+ Name = name;
+ Scope = scope;
+ Brief = brief;
+ Description = description;
+ }
+
+ public string Name { get; }
+
+ public string Scope { get; }
+
+ public string Brief { get; }
+
+ public string[] Description { get; }
+
+ public string GetDescription()
+ {
+ return Description.Aggregate((s, c) => s + c);
+ }
+ }
+} \ No newline at end of file