manifoldco / promptui

Interactive prompt for command-line applications
https://www.manifold.co
BSD 3-Clause "New" or "Revised" License
6.07k stars 336 forks source link

Integrating with CLI-Cobra #56

Open pjebs opened 6 years ago

pjebs commented 6 years ago
Promptui is a library providing a simple interface to create command-line prompts for go. It can be easily integrated into spf13/cobra, urfave/cli or any cli go application.

Is there an example project giving some guidelines or a starting-off point on how to integrate with cobra?

jayunit100 commented 6 years ago

Im definetly looking for the same thing. ill try to PR one if i can get it working.

jdaily commented 6 years ago

Not sure if this helps but here is a gist of using promptui with CLI https://gist.github.com/jdaily/ae9640750d1d73170312963e720075d6

garyposter commented 5 years ago

We're waiting on a contributor agreement for https://github.com/manifoldco/promptui/pull/79 but we could just add a link ourselves and close that PR.... Anyway, that PR points to https://github.com/jayunit100/promptui-cobra-example , thanks to @jayunit100 .