public static ArgsCommandBuilderRootCommand ArgsCommandBuilder(this string[] thisValue, string description = null) { var result = new ArgsCommandBuilderRootCommand() { Args = thisValue, Command = new RootCommand(description), Parent = null }; return(result); }
public static ArgsCommandBuilderLevel1Command Command(this ArgsCommandBuilderRootCommand thisValue, string name, string description = null) { var result = new ArgsCommandBuilderLevel1Command { Command = new Command(name, description), Parent = thisValue }; thisValue.Command.AddCommand(result.Command); return(result); }