summaryrefslogtreecommitdiff
path: root/dsa/DSALib/Auxiliary/CommandInfo.cs
blob: 80cc8546fd64cca1e712f4b87b5c9c98125f40b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
        }
    }
}