charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
18.34k stars 348 forks source link

huh forms using gum ? #485

Open lgersman opened 10 months ago

lgersman commented 10 months ago

I really love gum. But i also love huh forms (https://github.com/charmbracelet/huh) 😅 !

Are there any plans to integrate huh forms int gum ?

I would really love to just use gum to huh render terminal forms.

One idea to provide a declarative form description to gum/hue would be using a provided JSON Schema (just like https://rjsf-team.github.io/react-jsonschema-form/ does for rendering JSON Schema forms to HTML).

Just an idea...

maaslalani commented 10 months ago

Hey @lgersman, we love huh forms and gum as well! We definitely want to integrate huh and gum together. First, we will swap out gum internals to use huh inputs:

And, then we will likely also provide some way to build forms using gum as well!

lgersman commented 10 months ago

Huh ( :joy_cat: ) - sound promising !

Can't wait for it :heart: