openapi-codegen icon indicating copy to clipboard operation
openapi-codegen copied to clipboard

Prompt & Task manager

Open fabien0102 opened this issue 4 years ago • 4 comments

Summary

In order to have the best DX as possible, we need to be able to display nice prompt to ask question and having a task manager to display progress during the generation

What are we looking for?

  • The library need to be typesafe
  • Nice output (colors, keyboard interactions)
  • A way to navigate into file system would be amazing
  • A way to navigate into github repo would be even more amazing

Libraries to explore

Prompt

~https://github.com/goliney/garson~ -> No types exported, and the types are very bad

Task manager / Progress

https://github.com/privatenumber/tasuku https://github.com/agracio/ts-progress

Going deeper (if previous libraries are not good enough)

https://github.com/vadimdemedes/ink https://github.com/vadimdemedes/ink-testing-library

https://github.com/yarnpkg/berry/tree/master/packages/yarnpkg-libui

DX ref

https://cliffy.io/prompt/index.html

fabien0102 avatar Oct 20 '21 07:10 fabien0102

I did a little POC with ink, this will definitely do the job! 😁

fabien0102 avatar Oct 25 '21 08:10 fabien0102

@mpotomin Little screenshot for you, so you can see where the prompt API is going 😉

signal-2021-10-25-155006_001

fabien0102 avatar Oct 28 '21 08:10 fabien0102

A prompt homemade framework based on ink was introduce in #44

Adding https://github.com/privatenumber/tasuku (or something similiar) for adding feedback during the generation is still in the picture

fabien0102 avatar Mar 17 '22 16:03 fabien0102

@fabien0102 what is the idea behind this? I like to participate.

needim avatar Sep 23 '22 15:09 needim