Ejemplo n.º 1
0
        private static async Task Main(string[] args)
        {
            var helloWorldCommand = new DelegateCommand(
                "hello-world",
                "Output \"Hello World !\"",
                async c =>
            {
                Console.WriteLine("Hello World !");
                return(0);
            });

            var app = new CommandLineInterface("sample-cli", "Sample CLI", helloWorldCommand);
            await app.RunAsync(args);
        }