public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); MatrixType matrixType = MatrixType.PlatformDependencyGraph; syntax.DefineOption( "type", ref matrixType, value => (MatrixType)Enum.Parse(typeof(MatrixType), value, true), $"Type of matrix to generate. {EnumHelper.GetHelpTextOptions(matrixType)}"); MatrixType = matrixType; string customBuildLegGrouping = null; syntax.DefineOption( "customBuildLegGrouping", ref customBuildLegGrouping, "Name of custom build leg grouping to use."); CustomBuildLegGrouping = customBuildLegGrouping; int productVersionComponents = 2; syntax.DefineOption( "productVersionComponents", ref productVersionComponents, "Number of components of the product version considered to be significant"); ProductVersionComponents = productVersionComponents; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); bool isPushEnabled = false; syntax.DefineOption("push", ref isPushEnabled, "Push built images to Docker registry"); IsPushEnabled = isPushEnabled; bool isRetryEnabled = false; syntax.DefineOption("retry", ref isRetryEnabled, "Retry building images upon failure"); IsRetryEnabled = isRetryEnabled; bool isSkipPullingEnabled = false; syntax.DefineOption("skip-pulling", ref isSkipPullingEnabled, "Skip explicitly pulling the base images of the Dockerfiles"); IsSkipPullingEnabled = isSkipPullingEnabled; string imageInfoOutputPath = null; syntax.DefineOption("image-info-output-path", ref imageInfoOutputPath, "Path to output image info"); ImageInfoOutputPath = imageInfoOutputPath; string sourceRepoUrl = null; syntax.DefineOption("source-repo", ref sourceRepoUrl, "Repo URL of the Dockerfile sources"); SourceRepoUrl = sourceRepoUrl; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); string imageInfoPath = null; syntax.DefineOption("image-info", ref imageInfoPath, "Path to image info file"); ImageInfoPath = imageInfoPath; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); bool validate = false; syntax.DefineOption("validate", ref validate, "Validates the Dockerfiles and templates are in sync"); Validate = validate; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); const string DefaultSubscriptionsPath = "subscriptions.json"; string subscriptionsPath = DefaultSubscriptionsPath; syntax.DefineOption( "subscriptions-path", ref subscriptionsPath, $"Path to the subscriptions file (defaults to '{DefaultSubscriptionsPath}')."); SubscriptionsPath = subscriptionsPath; FilterOptions.DefineOptions(syntax); GitOptions.DefineOptions(syntax); }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); int allowedVariance = 5; syntax.DefineOption("variance", ref allowedVariance, $"Allowed percent variance in size (default is `{allowedVariance}`"); AllowedVariance = allowedVariance; bool isPullEnabled = false; syntax.DefineOption("pull", ref isPullEnabled, "Pull the images vs using local images"); IsPullEnabled = isPullEnabled; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); bool continuousMode = false; syntax.DefineOption("continuous", ref continuousMode, "Runs the status check continuously"); ContinuousMode = continuousMode; const int ContinuousModeDelayDefault = 10; int continuousModeDelay = ContinuousModeDelayDefault; syntax.DefineOption("continuous-delay", ref continuousModeDelay, $"Delay before running next status check (default {ContinuousModeDelayDefault} secs)"); ContinuousModeDelay = TimeSpan.FromSeconds(continuousModeDelay); }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); MatrixType matrixType = MatrixType.PlatformDependencyGraph; syntax.DefineOption( "type", ref matrixType, value => (MatrixType)Enum.Parse(typeof(MatrixType), value, true), $"Type of matrix to generate. {EnumHelper.GetHelpTextOptions(matrixType)}"); MatrixType = matrixType; IReadOnlyList <string> customBuildLegGroups = Array.Empty <string>(); syntax.DefineOptionList( "custom-build-leg-group", ref customBuildLegGroups, "Name of custom build leg group to use."); CustomBuildLegGroups = customBuildLegGroups; int productVersionComponents = 2; syntax.DefineOption( "product-version-components", ref productVersionComponents, "Number of components of the product version considered to be significant"); ProductVersionComponents = productVersionComponents; string imageInfoPath = null; syntax.DefineOption( "image-info", ref imageInfoPath, "Path to image info file"); ImageInfoPath = imageInfoPath; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); MatrixType matrixType = MatrixType.PlatformDependencyGraph; syntax.DefineOption( "type", ref matrixType, value => (MatrixType)Enum.Parse(typeof(MatrixType), value, true), $"Type of matrix to generate - {Enum.GetNames(typeof(MatrixType)).Aggregate((s1, s2) => $"{s1}, {s2}")}"); MatrixType = matrixType; string customBuildLegGrouping = null; syntax.DefineOption( "customBuildLegGrouping", ref customBuildLegGrouping, "Name of custom build leg grouping to use."); CustomBuildLegGrouping = customBuildLegGrouping; }
public override void DefineOptions(ArgumentSyntax syntax) { base.DefineOptions(syntax); FilterOptions.DefineOptions(syntax); }