github.com/verrazzano/verrazzano@v1.7.1/tools/charts-manager/vcm/pkg/constants/constants.go (about) 1 // Copyright (c) 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package constants 5 6 const ( 7 FlagChartName = "chart" 8 FlagChartShorthand = "c" 9 FlagChartUsage = "Name of the chart." 10 FlagChartExampleKeycloak = "keycloakx" 11 12 FlagVersionName = "version" 13 FlagVersionShorthand = "v" 14 FlagVersionUsage = "Version of the chart." 15 FlagVersionExample210 = "2.1.0" 16 17 FlagRepoName = "repo" 18 FlagRepoShorthand = "r" 19 FlagRepoUsage = "URL of the helm repo." 20 FlagRepoExampleCodecentric = "https://codecentric.github.io/helm-charts" 21 22 FlagDirName = "charts-dir" 23 FlagDirShorthand = "d" 24 FlagDirUsage = "Location of charts directory." 25 FlagDirExampleLocal = "./charts" 26 27 FlagTargetVersionName = "target-version" 28 FlagTargetVersionShorthand = "t" 29 FlagTargetVersionUsage = "Target downstream version of the chart." 30 FlagTargetVersionExample002 = "0.0.2" 31 32 FlagUpstreamProvenanceName = "upstream-provenance" 33 FlagUpstreamProvenanceShorthand = "u" 34 FlagUpstreamProvenanceUsage = "Preserve upstream version." 35 FlagUpstreamProvenanceDefault = true 36 37 FlagPatchName = "patch" 38 FlagPatchShorthand = "p" 39 FlagPatchUsage = "Patch diffs from a previous version with its upstream version." 40 FlagPatchDefault = true 41 42 FlagPatchVersionName = "patch-version" 43 FlagPatchVersionShorthand = "z" 44 FlagPatchVersionUsage = "Version to apply patch from." 45 FlagPatchVersionExample001 = "0.0.1" 46 47 FlagDiffSourceName = "diff-source" 48 FlagDiffSourceShorthand = "s" 49 FlagDiffSourceUsage = "Source directory to diff against." 50 FlagDiffSourceExample = "/root/charts/keycloakx/2.1.0" 51 52 FlagPatchFileName = "patch-file" 53 FlagPatchFileShorthand = "f" 54 FlagPatchFileUsage = "Patch file location." 55 FlagPatchFileExample = "/root/charts/vz_charts_patch_keycloakx_0.0.1.patch" 56 57 FlagExampleFormat = "--%s|-%s %v " 58 CommandWithFlagExampleFormat = `%s ` + FlagExampleFormat 59 )