Пример #1
0
        public async Task <int> Run(string[] args)
        {
            Console.OutputEncoding = Encoding.UTF8;

            SetExecutionEnvironment();

            _toolInteractiveService.WriteLine("AWS .NET deployment tool for deploying .NET Core applications to AWS.");
            _toolInteractiveService.WriteLine("Project Home: https://github.com/aws/aws-dotnet-deploy");
            _toolInteractiveService.WriteLine(string.Empty);

            // if user didn't specify a command, default to help
            if (args.Length == 0)
            {
                args = new[] { "-h" };
            }

            return(await _commandFactory.BuildRootCommand().InvokeAsync(args));
        }