mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: address verified review findings (terminal-forms-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
21 files changed
+329
-53
No files matched your search
@@ -130,7 +130,7 @@ func (p *FormPrompter) Ask(ctx context.Context, title string, validate func(stri
|
||||
func (p *FormPrompter) AskText(ctx context.Context, title, initial string) (string, error) {
|
||||
value := initial
|
||||
err := p.runForm(ctx, huh.NewForm(huh.NewGroup(bodyField(title, &value))))
|
||||
return value, err
|
||||
return fieldResult(initial, value), err
|
||||
}
|
||||
|
||||
// SecretInput collects a value without displaying it on the terminal.
|
||||
|
||||
Reference in new issue
Block a user