Esempio n. 1
0
        private static CommandLineBuilder BuildCommandLine()
        {
            var root = new RootCommand("Display project properties.")
            {
                Name = "projprops"
            };

            ProjPropsOptions.DefineOptions(root);
            root.Handler = CommandHandler.Create <IHost>(host => host.Services.GetRequiredService <Worker>().Execute());
            return(new CommandLineBuilder(root));
        }