internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_SCHEDULED_RULE_NAME.Switch)) != null)
            {
                this.ScheduleTaskRule = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_SCHEDULED_RULE_TARGET.Switch)) != null)
            {
                this.ScheduleTaskRuleTarget = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_SCHEDULE_EXPRESSION.Switch)) != null)
            {
                this.ScheduleExpression = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_CLOUDWATCHEVENT_ROLE.Switch)) != null)
            {
                this.CloudWatchEventIAMRole = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_DESIRED_COUNT.Switch)) != null)
            {
                this.DesiredCount = tuple.Item2.IntValue;
            }
        }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_CLUSTER.Switch)) != null)
            {
                this.ECSCluster = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_LAUNCH_TYPE.Switch)) != null)
            {
                this.LaunchType = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_LAUNCH_SUBNETS.Switch)) != null)
            {
                this.SubnetIds = tuple.Item2.StringValues;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_LAUNCH_SECURITYGROUPS.Switch)) != null)
            {
                this.SecurityGroupIds = tuple.Item2.StringValues;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_LAUNCH_ASSIGN_PUBLIC_IP.Switch)) != null)
            {
                this.AssignPublicIpAddress = tuple.Item2.BoolValue;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected virtual void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_AWS_PROFILE.Switch)) != null)
            {
                this.Profile = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_AWS_PROFILE_LOCATION.Switch)) != null)
            {
                this.ProfileLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_AWS_REGION.Switch)) != null)
            {
                this.Region = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PROJECT_LOCATION.Switch)) != null)
            {
                this.ProjectLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIG_FILE.Switch)) != null)
            {
                this.ConfigFile = tuple.Item2.StringValue;
            }

            if (string.IsNullOrEmpty(this.ConfigFile))
            {
                this.ConfigFile = LambdaToolsDefaultsReader.DEFAULT_FILE_NAME;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            if (values.Arguments.Count > 0)
            {
                this.OutputPackageFileName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_OUTPUT_PACKAGE.Switch)) != null)
            {
                this.OutputPackageFileName = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK.Switch)) != null)
            {
                this.DisableVersionCheck = tuple.Item2.BoolValue;
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);
            if (values.Arguments.Count > 0)
            {
                this.FunctionName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected virtual void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DISABLE_INTERACTIVE.Switch)) != null)
            {
                this.DisableInteractive = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_PROFILE.Switch)) != null)
            {
                this.Profile = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_PROFILE_LOCATION.Switch)) != null)
            {
                this.ProfileLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_REGION.Switch)) != null)
            {
                this.Region = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PROJECT_LOCATION.Switch)) != null)
            {
                this.ProjectLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIG_FILE.Switch)) != null)
            {
                this.ConfigFile = tuple.Item2.StringValue;

                var fullConfigPath = Path.Combine(Utilities.DetermineProjectLocation(this.WorkingDirectory, this.ProjectLocation), this.ConfigFile);
                if (!File.Exists(fullConfigPath))
                {
                    throw new ToolsException($"Config file {fullConfigPath} can not be found.", ToolsException.CommonErrorCode.MissingConfigFile);
                }
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PERSIST_CONFIG_FILE.Switch)) != null)
            {
                this.PersistConfigFile = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_ACCESS_KEY_ID.Switch)) != null)
            {
                this.AWSAccessKeyId = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_SECRET_KEY.Switch)) != null)
            {
                this.AWSSecretKey = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_SESSION_TOKEN.Switch)) != null)
            {
                this.AWSSessionToken = tuple.Item2.StringValue;
            }

            if (string.IsNullOrEmpty(this.ConfigFile))
            {
                this.ConfigFile = new TDefaultConfig().DefaultConfigFileName;
            }
        }
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            if (values.Arguments.Count > 0)
            {
                this.LayerName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_LAYER_NAME.Switch)) != null)
            {
                this.LayerName = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_LAYER_TYPE.Switch)) != null)
            {
                this.LayerType = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_LAYER_LICENSE_INFO.Switch)) != null)
            {
                this.LayerLicenseInfo = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_PACKAGE_MANIFEST.Switch)) != null)
            {
                this.PackageManifest = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_OPT_DIRECTORY.Switch)) != null)
            {
                this.OptDirectory = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_ENABLE_PACKAGE_OPTIMIZATION.Switch)) != null)
            {
                this.EnablePackageOptimization = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_FUNCTION_ARCHITECTURE.Switch)) != null)
            {
                this.Architecture = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE.Switch)) != null)
            {
                this.CloudFormationTemplate = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE_SUBSTITUTIONS.Switch)) != null)
            {
                this.TemplateSubstitutions = tuple.Item2.KeyValuePairs;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_OUTPUT_CLOUDFORMATION_TEMPLATE.Switch)) != null)
            {
                this.CloudFormationOutputTemplate = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK.Switch)) != null)
            {
                this.DisableVersionCheck = tuple.Item2.BoolValue;
            }

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_MSBUILD_PARAMETERS.Switch)) != null)
            {
                this.MSBuildParameters = tuple.Item2.StringValue;
            }

            if (!string.IsNullOrEmpty(values.MSBuildParameters))
            {
                if (this.MSBuildParameters == null)
                {
                    this.MSBuildParameters = values.MSBuildParameters;
                }
                else
                {
                    this.MSBuildParameters += " " + values.MSBuildParameters;
                }
            }
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);
            if (values.Arguments.Count > 0)
            {
                this.StackName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PACKAGE.Switch)) != null)
            {
                this.Package = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_STACK_NAME.Switch)) != null)
            {
                this.StackName = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE.Switch)) != null)
            {
                this.CloudFormationTemplate = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_STACK_WAIT.Switch)) != null)
            {
                this.WaitForStackToComplete = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE_PARAMETER.Switch)) != null)
            {
                this.TemplateParameters = tuple.Item2.KeyValuePairs;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PERSIST_CONFIG_FILE.Switch)) != null)
            {
                this.PersistConfigFile = tuple.Item2.BoolValue;
            }
        }
            public void ParseCommandArguments(CommandOptions values)
            {
                Tuple <CommandOption, CommandOptionValue> tuple;

                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
                {
                    this.Configuration = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
                {
                    this.TargetFramework = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PUBLISH_OPTIONS.Switch)) != null)
                {
                    this.PublishOptions = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKER_BUILD_WORKING_DIRECTORY.Switch)) != null)
                {
                    this.DockerBuildWorkingDirectory = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKER_BUILD_OPTIONS.Switch)) != null)
                {
                    this.DockerBuildOptions = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKERFILE.Switch)) != null)
                {
                    this.DockerFile = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_HOST_BUILD_OUTPUT.Switch)) != null)
                {
                    this.HostBuildOutput = tuple.Item2.StringValue;
                }
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_LOCAL_DOCKER_IMAGE.Switch)) != null)
                {
                    this.LocalDockerImage = tuple.Item2.StringValue;
                }

                // Check the --image-tag or the old obsolete --tag for an ECR Image tag.
                if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKER_TAG.Switch)) != null)
                {
                    this.DockerImageTag = tuple.Item2.StringValue;
                }
                else if (string.IsNullOrEmpty(this.DockerImageTag) && (tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKER_TAG_OBSOLETE.Switch)) != null)
                {
                    this.DockerImageTag = tuple.Item2.StringValue;
                }
            }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DOCKER_TAG.Switch)) != null)
            {
                this.DockerImageTag = tuple.Item2.StringValue;
            }
        }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_TASK_COUNT.Switch)) != null)
            {
                this.TaskCount = tuple.Item2.IntValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_PLACEMENT_CONSTRAINTS.Switch)) != null)
            {
                this.PlacementConstraints = tuple.Item2.StringValues;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_PLACEMENT_STRATEGY.Switch)) != null)
            {
                this.PlacementStrategy = tuple.Item2.StringValues;
            }
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);
            if (values.Arguments.Count > 0)
            {
                this.FunctionName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PACKAGE.Switch)) != null)
            {
                this.Package = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PERSIST_CONFIG_FILE.Switch)) != null)
            {
                this.PersistConfigFile = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK.Switch)) != null)
            {
                this.DisableVersionCheck = tuple.Item2.BoolValue;
            }

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_MSBUILD_PARAMETERS.Switch)) != null)
            {
                this.MSBuildParameters = tuple.Item2.StringValue;
            }

            if (!string.IsNullOrEmpty(values.MSBuildParameters))
            {
                if (this.MSBuildParameters == null)
                {
                    this.MSBuildParameters = values.MSBuildParameters;
                }
                else
                {
                    this.MSBuildParameters += " " + values.MSBuildParameters;
                }
            }
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE.Switch)) != null)
            {
                this.CloudFormationTemplate = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE_SUBSTITUTIONS.Switch)) != null)
            {
                this.TemplateSubstitutions = tuple.Item2.KeyValuePairs;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_OUTPUT_CLOUDFORMATION_TEMPLATE.Switch)) != null)
            {
                this.CloudFormationOutputTemplate = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
        }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_SKIP_IMAGE_PUSH.Switch)) != null)
            {
                this.SkipImagePush = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_SERVICE.Switch)) != null)
            {
                this.ECSService = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ECS_DESIRED_COUNT.Switch)) != null)
            {
                this.DesiredCount = tuple.Item2.IntValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DEPLOYMENT_MINIMUM_HEALTHY_PERCENT.Switch)) != null)
            {
                this.DeploymentMinimumHealthyPercent = tuple.Item2.IntValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DEPLOYMENT_MAXIMUM_PERCENT.Switch)) != null)
            {
                this.DeploymentMaximumPercent = tuple.Item2.IntValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ELB_SERVICE_ROLE.Switch)) != null)
            {
                this.ELBServiceRole = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ELB_TARGET_GROUP_ARN.Switch)) != null)
            {
                this.ELBTargetGroup = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_ELB_CONTAINER_PORT.Switch)) != null)
            {
                this.ELBContainerPort = tuple.Item2.IntValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_PLACEMENT_CONSTRAINTS.Switch)) != null)
            {
                this.PlacementConstraints = tuple.Item2.StringValues;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_PLACEMENT_STRATEGY.Switch)) != null)
            {
                this.PlacementStrategy = tuple.Item2.StringValues;
            }
        }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EB_ENVIRONMENT.Switch)) != null)
            {
                this.Environment = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            if (values.Arguments.Count > 0)
            {
                this.OutputPackageFileName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_OUTPUT_PACKAGE.Switch)) != null)
            {
                this.OutputPackageFileName = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK.Switch)) != null)
            {
                this.DisableVersionCheck = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_MSBUILD_PARAMETERS.Switch)) != null)
            {
                this.MSBuildParameters = tuple.Item2.StringValue;
            }

            if (!string.IsNullOrEmpty(values.MSBuildParameters))
            {
                if (this.MSBuildParameters == null)
                {
                    this.MSBuildParameters = values.MSBuildParameters;
                }
                else
                {
                    this.MSBuildParameters += " " + values.MSBuildParameters;
                }
            }
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            if (values.Arguments.Count > 0)
            {
                this.FunctionName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_FUNCTION_NAME.Switch)) != null)
            {
                this.FunctionName = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_PAYLOAD.Switch)) != null)
            {
                this.Payload = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PERSIST_CONFIG_FILE.Switch)) != null)
            {
                this.PersistConfigFile = tuple.Item2.BoolValue;
            }
        }
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_FUNCTION_ARCHITECTURE.Switch)) != null)
            {
                this.Architecture = tuple.Item2.StringValue;
            }
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected virtual void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_AWS_PROFILE.Switch)) != null)
            {
                this.Profile = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_AWS_PROFILE_LOCATION.Switch)) != null)
            {
                this.ProfileLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_AWS_REGION.Switch)) != null)
            {
                this.Region = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PROJECT_LOCATION.Switch)) != null)
            {
                this.ProjectLocation = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected virtual void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DISABLE_INTERACTIVE.Switch)) != null)
            {
                this.DisableInteractive = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_PROFILE.Switch)) != null)
            {
                this.Profile = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_PROFILE_LOCATION.Switch)) != null)
            {
                this.ProfileLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_AWS_REGION.Switch)) != null)
            {
                this.Region = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PROJECT_LOCATION.Switch)) != null)
            {
                this.ProjectLocation = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIG_FILE.Switch)) != null)
            {
                this.ConfigFile = tuple.Item2.StringValue;
            }

            if (string.IsNullOrEmpty(this.ConfigFile))
            {
                this.ConfigFile = new TDefaultConfig().DefaultConfigFileName;
            }
        }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PUBLISH_OPTIONS.Switch)) != null)
            {
                this.PublishOptions = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DOCKER_TAG.Switch)) != null)
            {
                this.DockerImageTag = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DOCKER_BUILD_WORKING_DIRECTORY.Switch)) != null)
            {
                this.DockerBuildWorkingDirectory = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(ECSDefinedCommandOptions.ARGUMENT_DOCKER_BUILD_OPTIONS.Switch)) != null)
            {
                this.DockerBuildOptions = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            this.DeployEnvironmentOptions.ParseCommandArguments(values);

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_INPUT_PACKAGE.Switch)) != null)
            {
                this.Package = tuple.Item2.StringValue;
            }
        }
Ejemplo n.º 25
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            if (values.Arguments.Count > 0)
            {
                this.StackName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_STACK_NAME.Switch)) != null)
            {
                this.StackName = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            this.PushDockerImageProperties.ParseCommandArguments(values);
            this.TaskDefinitionProperties.ParseCommandArguments(values);
            this.ClusterProperties.ParseCommandArguments(values);
            this.DeployTaskProperties.ParseCommandArguments(values);

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PERSIST_CONFIG_FILE.Switch)) != null)
            {
                this.PersistConfigFile = tuple.Item2.BoolValue;
            }
        }
Ejemplo n.º 27
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);

            if (values.Arguments.Count > 0)
            {
                this.LayerVersionArn = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_LAYER_VERSION_ARN.Switch)) != null)
            {
                this.LayerVersionArn = tuple.Item2.StringValue;
            }
        }
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);
            if (values.Arguments.Count > 0)
            {
                this.StackName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PACKAGE.Switch)) != null)
            {
                this.Package = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_STACK_NAME.Switch)) != null)
            {
                this.StackName = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE.Switch)) != null)
            {
                this.CloudFormationTemplate = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_STACK_WAIT.Switch)) != null)
            {
                this.WaitForStackToComplete = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE_PARAMETER.Switch)) != null)
            {
                this.TemplateParameters = tuple.Item2.KeyValuePairs;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_TEMPLATE_SUBSTITUTIONS.Switch)) != null)
            {
                this.TemplateSubstitutions = tuple.Item2.KeyValuePairs;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_PERSIST_CONFIG_FILE.Switch)) != null)
            {
                this.PersistConfigFile = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_CLOUDFORMATION_ROLE.Switch)) != null)
            {
                this.CloudFormationRole = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK.Switch)) != null)
            {
                this.DisableVersionCheck = tuple.Item2.BoolValue;
            }

            if ((tuple = values.FindCommandOption(DefinedCommandOptions.ARGUMENT_MSBUILD_PARAMETERS.Switch)) != null)
            {
                this.MSBuildParameters = tuple.Item2.StringValue;
            }

            if (!string.IsNullOrEmpty(values.MSBuildParameters))
            {
                if (this.MSBuildParameters == null)
                {
                    this.MSBuildParameters = values.MSBuildParameters;
                }
                else
                {
                    this.MSBuildParameters += " " + values.MSBuildParameters;
                }
            }
        }
        internal void ParseCommandArguments(CommandOptions values)
        {
            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_SELF_CONTAINED.Switch)) != null)
            {
                this.SelfContained = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_PUBLISH_OPTIONS.Switch)) != null)
            {
                this.PublishOptions = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EB_APPLICATION.Switch)) != null)
            {
                this.Application = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EB_ENVIRONMENT.Switch)) != null)
            {
                this.Environment = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_APP_PATH.Switch)) != null)
            {
                this.UrlPath = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_IIS_WEBSITE.Switch)) != null)
            {
                this.IISWebSite = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_WAIT_FOR_UPDATE.Switch)) != null)
            {
                this.WaitForUpdate = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EB_VERSION_LABEL.Switch)) != null)
            {
                this.VersionLabel = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EB_TAGS.Switch)) != null)
            {
                this.Tags = tuple.Item2.KeyValuePairs;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EB_ADDITIONAL_OPTIONS.Switch)) != null)
            {
                this.AdditionalOptions = tuple.Item2.KeyValuePairs;
            }

            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_SOLUTION_STACK.Switch)) != null)
            {
                this.SolutionStack = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_ENVIRONMENT_TYPE.Switch)) != null)
            {
                this.EnvironmentType = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_CNAME_PREFIX.Switch)) != null)
            {
                this.CNamePrefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_INSTANCE_TYPE.Switch)) != null)
            {
                this.InstanceType = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_EC2_KEYPAIR.Switch)) != null)
            {
                this.EC2KeyPair = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_HEALTH_CHECK_URL.Switch)) != null)
            {
                this.HealthCheckUrl = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_INSTANCE_PROFILE.Switch)) != null)
            {
                this.InstanceProfile = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_SERVICE_ROLE.Switch)) != null)
            {
                this.ServiceRole = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_ENABLE_XRAY.Switch)) != null)
            {
                this.EnableXRay = tuple.Item2.BoolValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_ENHANCED_HEALTH_TYPE.Switch)) != null)
            {
                this.EnhancedHealthType = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_LOADBALANCER_TYPE.Switch)) != null)
            {
                this.LoadBalancerType = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_ENABLE_STICKY_SESSIONS.Switch)) != null)
            {
                this.EnableStickySessions = tuple.Item2.BoolValue;
            }

            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_PROXY_SERVER.Switch)) != null)
            {
                this.ProxyServer = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(EBDefinedCommandOptions.ARGUMENT_APPLICATION_PORT.Switch)) != null)
            {
                this.ApplicationPort = tuple.Item2.IntValue;
            }
        }
Ejemplo n.º 30
0
        /// <summary>
        /// Parse the CommandOptions into the Properties on the command.
        /// </summary>
        /// <param name="values"></param>
        protected override void ParseCommandArguments(CommandOptions values)
        {
            base.ParseCommandArguments(values);
            if (values.Arguments.Count > 0)
            {
                this.FunctionName = values.Arguments[0];
            }

            Tuple <CommandOption, CommandOptionValue> tuple;

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_CONFIGURATION.Switch)) != null)
            {
                this.Configuration = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_FRAMEWORK.Switch)) != null)
            {
                this.TargetFramework = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_PACKAGE.Switch)) != null)
            {
                this.Package = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_S3_BUCKET.Switch)) != null)
            {
                this.S3Bucket = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_S3_PREFIX.Switch)) != null)
            {
                this.S3Prefix = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_DISABLE_VERSION_CHECK.Switch)) != null)
            {
                this.DisableVersionCheck = tuple.Item2.BoolValue;
            }

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_MSBUILD_PARAMETERS.Switch)) != null)
            {
                this.MSBuildParameters = tuple.Item2.StringValue;
            }

            if (!string.IsNullOrEmpty(values.MSBuildParameters))
            {
                if (this.MSBuildParameters == null)
                {
                    this.MSBuildParameters = values.MSBuildParameters;
                }
                else
                {
                    this.MSBuildParameters += " " + values.MSBuildParameters;
                }
            }


            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_PACKAGE_TYPE.Switch)) != null)
            {
                this.PackageType = tuple.Item2.StringValue;
            }

            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKERFILE.Switch)) != null)
            {
                this.DockerFile = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKER_BUILD_OPTIONS.Switch)) != null)
            {
                this.DockerBuildOptions = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_DOCKER_BUILD_WORKING_DIRECTORY.Switch)) != null)
            {
                this.DockerBuildWorkingDirectory = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(LambdaDefinedCommandOptions.ARGUMENT_IMAGE_TAG.Switch)) != null)
            {
                this.DockerImageTag = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_HOST_BUILD_OUTPUT.Switch)) != null)
            {
                this.HostBuildOutput = tuple.Item2.StringValue;
            }
            if ((tuple = values.FindCommandOption(CommonDefinedCommandOptions.ARGUMENT_LOCAL_DOCKER_IMAGE.Switch)) != null)
            {
                this.LocalDockerImage = tuple.Item2.StringValue;
            }
        }