示例#1
0
        public Task <int> OnExecuteAsync(IConsole console)
        {
            try
            {
                var windowWidth = Console.WindowWidth == 0 ? 80 : Console.WindowWidth;
                _replayRetriever.PrintResources(Name, console.Out, windowWidth);
            }
            catch (ConfigurationException exception)
            {
                Logger.Error(exception.Message);
                return(Task.FromResult(1));
            }

            return(Task.FromResult(0));
        }