We should get someone from Purdue to do this. They are the boilerplaters.

This commit is contained in:
2025-05-12 22:58:55 -04:00
parent 48d7730a5c
commit 9dbd7ecab8
11 changed files with 393 additions and 103 deletions

View File

@@ -0,0 +1,41 @@
package params
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/charmbracelet/huh"
)
type Width struct {
paramValue *string
field *huh.Input
}
func NewWidth() *Width {
w := &Width{
paramValue: aws.String(""),
field: huh.NewInput().
Key("h").
Description("The width of the image.").
Title("Width"),
}
w.field.Value(w.paramValue)
return w
}
func (h Width) Display() string {
return "width"
}
func (h Width) Value() string {
return *h.paramValue
}
func (h Width) Key() string {
return "h"
}
func (h Width) Input() []huh.Field {
return []huh.Field{h.field}
}