public void Parse()
        {
            query.Parse();

            PackageId      = query.GetArgument(2);
            PackageVersion = query.GetArgument(3);
        }
Beispiel #2
0
        public static IEnumerable <PaketSearchCommand> FilterCommands(string search)
        {
            var query = new PaketSearchCommandQuery(search);

            query.Parse();
            if (query.IsPaketSearchCommand)
            {
                return(CreateCommands(search)
                       .Where(command => command.IsMatch(query)));
            }

            return(Enumerable.Empty <PaketSearchCommand> ());
        }