Comments (7)
Hi Sylvain,
The whole tty library is undergoing changes which involve extracting components. I've managed to extract quite few so far such as tty-progressbar .
The interface for asking for user input quite frankly lacks robustness and hasn't been maintained for some time. In near future I would like to change this situation and extract is as it's own independent component with more robust architecture.
Considering the current bug that you found, if you have time I would really appreciate contribution. On my part, I cannot say when this will be fixed as I'm currently taking a small sabbatical(few weeks) to rethink and refresh my open source enthusiasm. However, I'm still happy to merge patches and release new version. Let me have your thoughts?
from tty.
Hi Peter
I'll try to find the problem and patch it, but I unfortunately have little time right now so don't hold your breath :( Wanted to try TTY out, it's a really really nice looking library for everything console related.
Can you share a little bit more on your future plans ? Would really hate to migrate to TTY to find out that everything changed ;-) Right now, I'm mostly using the tables and pastel.
Sylvain
from tty.
OK ... so allocated 15 mins to check it out ... #18
One question: what does the harcoded 10 at https://github.com/peter-murach/tty/blob/master/lib/tty/shell/response.rb#L60 imply ? Does it mean that the answer cannot be more than 10 characters long ?
from tty.
Aaannnnnddddd. Run tests before submitting anything. facepalm /me. Will fix ASAP.
from tty.
See #19. Tests still not fully passing, but this time it's on purpose (I'd like to have your opinion on the fix)
from tty.
tty
in the past grew into a large and flaky codebase, it was much harder to ensure quality and decent interface. Rewind to today, much more robust individual components on a sure path to 1.0 release with simple internals as well as external api backed by full coverage. To answer your question, the components already extracted will not change but only get bug fixes and new features. There are few remaining components to be extracted and new added. One of them is the interface for prompting user input. I have no intention of changing how it works but to follow the above philosophy as well as make the component the best it can be and thus I will extract it to another dependency tty-...
. In my plans i want to extend public api to allow for presenting lists to user that get checkmark when done/selected, checkboxes and other more fancy inputs! I want to offer fancy menu choices for user to select from by using terminal navigation etc... This part got neglected for too long and I want to bring it up to speed. Does that answer your query?
from tty.
Does that answer your query?
Definitely does. Thanks for taking the time to answer it so thoroughly ;-)
from tty.
Related Issues (20)
- teletype new broken in 0.9.0 HOT 1
- Bundler 2 compatibility HOT 24
- Feature request: add hyperlinks support HOT 2
- Overwrite executable warning when trying to install gem HOT 1
- `teletype new` errors if path contains space HOT 1
- integration tests don't work ootb HOT 2
- e2e testing doesn't feel good HOT 1
- Warnings with ruby 2.7 HOT 1
- Error with add config HOT 1
- Add vim modeline for indentation HOT 5
- Documentation for template usage HOT 1
- Initial project creation; 'teletype' command throws exception until gemspec is edited HOT 1
- Only require `tty-...` gems that are used in the app HOT 1
- Getting a success indicator in TTY::File.copy_file() HOT 2
- teletype new app -> wrong number of arguments (given 1, expected 0) HOT 6
- TTY is using old version of gem unicorn-display_width HOT 3
- tty not working with Ruby 3.0.0 HOT 1
- tty is not accepting input when generating a new app using Ruby 2.7.2 via asdf HOT 6
- `teletype new` rejects argument HOT 11
- Consider upgrading versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tty.