public override void Render([NotNull] GlobalContext globalContext, [NotNull, ItemNotNull] IEnumerable <Dependency> dependencies, string options, [NotNull] WriteTarget target, bool ignoreCase) { DoRender(globalContext, dependencies, options, target, InterfaceSelectorOption.Action((args, j) => { _interfaceSelector = new Regex(Option.ExtractRequiredOptionValue(args, ref j, "Regex for interface selector missing")); return(j); }), OrderFieldOption.Action((args, j) => { string orderPattern = Option.ExtractRequiredOptionValue(args, ref j, "order field missing"); _orderSupport = OrderSupport.Create(orderPattern, ignoreCase); return(j); })); }
public override void Render([NotNull] GlobalContext globalContext, [NotNull, ItemNotNull] IEnumerable <Dependency> dependencies, string options, [NotNull] WriteTarget target, bool ignoreCase) { DoRender(globalContext, dependencies, options, target, BottomRegexOption.Action((args, j) => { string pattern = Option.ExtractRequiredOptionValue(args, ref j, "Pattern for selection of bottom items missing"); _bottomItemMatch = new ItemMatch(null, pattern, 0, ignoreCase, anyWhereMatcherOk: true); return(j); }), OrderFieldOption.Action((args, j) => { string orderPattern = Option.ExtractRequiredOptionValue(args, ref j, "order field missing"); _orderSupport = OrderSupport.Create(orderPattern, ignoreCase); return(j); }), NoEmptiesOnBottomOption.Action((args, j) => { _showOnlyReferencedOnBottom = true; return(j); }), NoEmptiesOnLeftOption.Action((args, j) => { _showOnlyReferencingOnLeft = true; return(j); })); }