Batman! (this commit has no parents)

This commit is contained in:
2025-05-13 09:49:02 -04:00
parent 9dbd7ecab8
commit 23629a40a8
3 changed files with 75 additions and 17 deletions

View File

@@ -0,0 +1,41 @@
package params
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/charmbracelet/huh"
)
type Quality struct {
value *string
field *huh.Input
}
func NewQuality() *Quality {
z := &Quality{
value: aws.String(""),
field: huh.NewInput().
Key("q").
Description("Quality of the image 0-100").
Title("Quality"),
}
z.field.Value(z.value)
return z
}
func (z *Quality) Value() string {
return *z.value
}
func (z *Quality) Display() string {
return "quality"
}
func (z *Quality) Key() string {
return "q"
}
func (z *Quality) Input() []huh.Field {
return []huh.Field{z.field}
}