File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -177,12 +177,24 @@ func SetMandatoryFalse() StringFlagOption {
177177 }
178178}
179179
180+ func SetMandatoryTrue () StringFlagOption {
181+ return func (f * StringFlag ) {
182+ f .Mandatory = true
183+ }
184+ }
185+
180186func WithBoolDefaultValueFalse () BoolFlagOption {
181187 return func (f * BoolFlag ) {
182188 f .DefaultValue = false
183189 }
184190}
185191
192+ func WithBoolDefaultValueTrue () BoolFlagOption {
193+ return func (f * BoolFlag ) {
194+ f .DefaultValue = true
195+ }
196+ }
197+
186198type BoolFlag struct {
187199 BaseFlag
188200 DefaultValue bool
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020
2121const (
2222 ChecksumFileName = "checksum.sha2"
23- jarsDocumentation = "https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/cli-for -jfrog-artifactory/package-managers-integration#downloading-the-maven-and-gradle-extractor-jars"
23+ jarsDocumentation = "https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/binaries-management-with -jfrog-artifactory/package-managers-integration#downloading-the-maven-and-gradle-extractor-jars"
2424)
2525
2626// Download the relevant build-info-extractor jar.
You can’t perform that action at this time.
0 commit comments