Example #1
0
    public override void Configure(CommandLineApplication command)
    {
        command.FullName = Resources.DotnetEfFullName;
        command.AllowArgumentSeparator = true;

        var options = new ProjectOptions();

        options.Configure(command);

        _project        = options.Project;
        _startupProject = options.StartupProject;
        _framework      = options.Framework;
        _configuration  = options.Configuration;
        _runtime        = options.Runtime;
        _msbuildprojectextensionspath = options.MSBuildProjectExtensionsPath;
        _noBuild = options.NoBuild;

        command.VersionOption("--version", GetVersion);
        _help = command.Option("-h|--help", description: null);

        _args            = command.RemainingArguments;
        _applicationArgs = command.ApplicationArguments;

        base.Configure(command);

        _command = command;
    }
Example #2
0
        public override void Configure(CommandLineApplication command)
        {
            base.Configure(command);

            _projectOptions.Configure(command);
            _args = command.RemainingArguments;
        }
Example #3
0
        public override void Configure(CommandLineApplication command)
        {
            var options = new ProjectOptions();

            options.Configure(command);

            _configuration         = options.Configuration;
            _project               = options.Project;
            _projectExtensionsPath = options.ProjectExtensionsPath;
            _runtime               = options.Runtime;
            _targetFramework       = options.TargetFramework;

            _output = command.Option("--output <Path>", Resources.OutputDescription);
            command.VersionOption("--version", ProductInfo.GetVersion);
            _args = command.RemainingArguments;

            base.Configure(command);
        }