Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit db84f6d

Browse files
committed
Rename optionsValue to minRuleValue
1 parent f5e8173 commit db84f6d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

internals/secrethub/generate.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type GenerateSecretCommand struct {
4141
secondArg string
4242
lengthArg intValue
4343
charsetFlag charsetValue
44-
mins optionsValue
44+
mins minRuleValue
4545
copyToClipboard bool
4646
clearClipboardAfter time.Duration
4747
clipper clip.Clipper
@@ -195,15 +195,15 @@ func (cmd *GenerateSecretCommand) useSymbols() (bool, error) {
195195
return false, nil
196196
}
197197

198-
type optionsValue struct {
198+
type minRuleValue struct {
199199
v []randchar.Option
200200
}
201201

202-
func (ov *optionsValue) String() string {
202+
func (ov *minRuleValue) String() string {
203203
return ""
204204
}
205205

206-
func (ov *optionsValue) Set(flagValue string) error {
206+
func (ov *minRuleValue) Set(flagValue string) error {
207207
elements := strings.Split(flagValue, ":")
208208
if len(elements) != 2 {
209209
return ErrInvalidMinFlag(flagValue)
@@ -223,7 +223,7 @@ func (ov *optionsValue) Set(flagValue string) error {
223223
return nil
224224
}
225225

226-
func (ov *optionsValue) IsCumulative() bool {
226+
func (ov *minRuleValue) IsCumulative() bool {
227227
return true
228228
}
229229

0 commit comments

Comments
 (0)