public CommandCategory Category(string name, string description) { var category = new CommandCategory(this, name, description); _categories.Add(category); return(category); }
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; }
internal CommandItem(string path, string name, string help, CommandCategory category) : base(path, name, help, ItemType.Command) { Item.Category = category; }