public FindCommandSourceResult(ParseResult parseResult, FindCommandSource commandSource, int exitCode)
     : base(parseResult, (commandSource.ParentCommandSource as CliRootCommandSource), exitCode)
 {
     intArgArgument_Result     = CommandSourceMemberResult.Create(commandSource.intArgArgument, parseResult);
     stringOptionOption_Result = CommandSourceMemberResult.Create(commandSource.stringOptionOption, parseResult);
     boolOptionOption_Result   = CommandSourceMemberResult.Create(commandSource.boolOptionOption, parseResult);
 }
 public FormatCommandSourceResult(ParseResult parseResult, FormatCommandSource commandSource, int exitCode)
     : base(parseResult, (commandSource.ParentCommandSource as CommandSourceBase), exitCode)
 {
     folderOption_Result    = CommandSourceMemberResult.Create(commandSource.folderOption, parseResult);
     filesOption_Result     = CommandSourceMemberResult.Create(commandSource.filesOption, parseResult);
     excludeOption_Result   = CommandSourceMemberResult.Create(commandSource.excludeOption, parseResult);
     checkOption_Result     = CommandSourceMemberResult.Create(commandSource.checkOption, parseResult);
     reportOption_Result    = CommandSourceMemberResult.Create(commandSource.reportOption, parseResult);
     verbosityOption_Result = CommandSourceMemberResult.Create(commandSource.verbosityOption, parseResult);
 }
예제 #3
0
 public DotnetFormatCommandSourceResult(ParseResult parseResult, DotnetFormatCommandSource commandSource, int exitCode)
     : base(parseResult, (commandSource.ParentCommandSource as CommandSourceBase), exitCode)
 {
     FolderOption_Result    = CommandSourceMemberResult.Create(commandSource.FolderOption, parseResult);
     FilesOption_Result     = CommandSourceMemberResult.Create(commandSource.FilesOption, parseResult);
     ExcludeOption_Result   = CommandSourceMemberResult.Create(commandSource.ExcludeOption, parseResult);
     CheckOption_Result     = CommandSourceMemberResult.Create(commandSource.CheckOption, parseResult);
     ReportOption_Result    = CommandSourceMemberResult.Create(commandSource.ReportOption, parseResult);
     VerbosityOption_Result = CommandSourceMemberResult.Create(commandSource.VerbosityOption, parseResult);
 }
예제 #4
0
        public DotnetCommandCommandSourceResult(ParseResult parseResult, CommandSourceBase?commandSourceBase, int exitCode)
            : base(parseResult, commandSourceBase, exitCode)
        {
            var commandSource = commandSourceBase as DotnetCommandCommandSource;

            if (commandSource is null)
            {
                throw new InvalidOperationException();
            }
            // Setup data (noting following means no data was expected)
            UxLevelOption_Result  = CommandSourceMemberResult.Create(commandSource.UxLevelOption, parseResult);
            RenderToOption_Result = CommandSourceMemberResult.Create(commandSource.RenderToOption, parseResult);
            Help2Option_Result    = CommandSourceMemberResult.Create(commandSource.Help2Option, parseResult);
        }
예제 #5
0
        public NewCommandCommandSourceResult(ParseResult parseResult, CommandSourceBase?commandSourceBase, int exitCode)
            : base(parseResult, commandSourceBase?.ParentCommandSource, exitCode)
        {
            var commandSource = commandSourceBase as NewCommandCommandSource;

            if (commandSource is null)
            {
                throw new InvalidOperationException();
            }
            // Setup data (noting following means no data was expected)

            // Setup data for properties
            Name_Result   = CommandSourceMemberResult.Create(commandSource.NameOption, parseResult);
            Output_Result = CommandSourceMemberResult.Create(commandSource.OutputOption, parseResult);
        }
예제 #6
0
        public ListCommandCommandSourceResult(ParseResult parseResult, CommandSourceBase?commandSourceBase, int exitCode)
            : base(parseResult, commandSourceBase.ParentCommandSource, exitCode)
        {
            var commandSource = commandSourceBase as ListCommandCommandSource;

            if (commandSource is null)
            {
                throw new InvalidOperationException();
            }
            // Setup data for parameters (noting following means no data was expected)
            ColumnsOption_Result  = CommandSourceMemberResult.Create(commandSource.ColumnsOption, parseResult);
            TypeOption_Result     = CommandSourceMemberResult.Create(commandSource.TypeOption, parseResult);
            LanguageOption_Result = CommandSourceMemberResult.Create(commandSource.LanguageOption, parseResult);

            // Setup data for properties
        }
 public ListCommandSourceResult(ParseResult parseResult, ListCommandSource commandSource, int exitCode)
     : base(parseResult, (commandSource.ParentCommandSource as CliRootCommandSource), exitCode)
 {
     verbosityOption_Result = CommandSourceMemberResult.Create(commandSource.verbosityOption, parseResult);
 }
 public CliRootCommandSourceResult(ParseResult parseResult, CliRootCommandSource commandSource, int exitCode)
     : base(parseResult, (commandSource.ParentCommandSource as CommandSourceBase), exitCode)
 {
     StringPropertyOption_Result = CommandSourceMemberResult.Create(commandSource.StringPropertyOption, parseResult);
     ctorParamOption_Result      = CommandSourceMemberResult.Create(commandSource.ctorParamOption, parseResult);
 }