예제 #1
0
        public CommandLineApplication Create()
        {
            var app = new CommandLineApplication
            {
                Name        = "ant-design-blazor",
                FullName    = "Ant Design Blazor Command Line Tool",
                Description =
                    "Generate demo structured file for Docs."
            };

            app.HelpOption();
            app.VersionOptionFromAssemblyAttributes(typeof(Program).Assembly);

            app.OnExecute(() =>
            {
                app.ShowHelp();
                return(2);
            });

            _appCommandResolver.Resolve(app);

            return(app);
        }
예제 #2
0
        public CommandLineApplication Create()
        {
            var app = new CommandLineApplication
            {
                Name        = "dotnet skywalking",
                FullName    = "Apache SkyWalking .NET Core Agent Command Line Tool",
                Description =
                    "Install SkyWalking .NET Core Agent and generate config file."
            };

            app.HelpOption();
            app.VersionOptionFromAssemblyAttributes(typeof(Program).Assembly);

            app.OnExecute(() =>
            {
                app.ShowHelp();
                return(2);
            });

            _appCommandResolver.Resolve(app);

            return(app);
        }
예제 #3
0
        public CommandLineApplication Create()
        {
            var app = new CommandLineApplication
            {
                Name        = "skyapm",
                FullName    = "SkyAPM .NET Core Agent Command Line Tool",
                Description =
                    "Generate SkyAPM config file."
            };

            app.HelpOption();
            app.VersionOptionFromAssemblyAttributes(typeof(Program).Assembly);

            app.OnExecute(() =>
            {
                app.ShowHelp();
                return(2);
            });

            _appCommandResolver.Resolve(app);

            return(app);
        }