github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/internal/fs/ddl/console/input_item.templ (about)

     1  
     2  {{.Description}}
     3  
     4  ║      Prompt: {{.Prompt}}
     5  ║        Type: {{.Type | Title}}
     6  ║    Optional: {{.Optional}}
     7  {{- if eq .Type "string" }}
     8  ║  Validation: {{.Validation}}
     9  ║  Max Length: {{.MaxLength}}
    10  {{- else if eq .Type "list" }}
    11  ║    Enum: {{StringsJoin .Enum}}
    12  {{- end }}
    13  {{- if .Default }}
    14  ║     Default: {{.Default}}
    15  {{- end }}
    16  ╙─