Esempio n. 1
0
        public CommandCategory Category(string name, string description)
        {
            var category = new CommandCategory(this, name, description);

            _categories.Add(category);
            return(category);
        }
Esempio n. 2
0
 public CommandLineItem(string path, string name, string help, ItemType itemType, ValueType valueType, CommandCategory category)
 {
     Path         = path;
     Name         = name;
     Help         = help;
     ItemType     = itemType;
     ValueType    = valueType;
     DefaultValue = String.Empty;
     if (typeof(T).IsEnum)
     {
         TypeOfEnum = typeof(T);
     }
     Suggestions = new string[0];
     Examples    = new string[0];
     Category    = category;
 }
Esempio n. 3
0
 internal CommandItem(string path, string name, string help, CommandCategory category) : base(path, name, help, ItemType.Command)
 {
     Item.Category = category;
 }