Ejemplo n.º 1
0
        public bool Execute(string subject, IQueueTools tools, IOutput log)
        {
            bool alreadyExists = tools.Exists(subject);

            if (!alreadyExists)
            {
                log.Warn(subject, "Doesn't exist. Skipping.");
                return(false);
            }

            log.Info(subject, "Listing results.");
            foreach (var res in tools.Cat(subject, _opts.WithExtension))
            {
                log.Out(res.ToString());
            }

            return(true);
        }
Ejemplo n.º 2
0
        public bool Execute(string subject, IQueueTools tools, IOutput log)
        {
            bool alreadyExists = tools.Exists(subject);

            if (!alreadyExists)
            {
                log.Warn(subject, "Doesn't exist. Skipping.");
                return false;
            }

            log.Info(subject, "Listing results.");
            foreach(var res in tools.Cat(subject, _opts.WithExtension))
            {
                log.Out(res.ToString());
            }

            return true;
        }