Comments (6)
Hmm so i'm not a huge fan of adding such an external dependency, especially since it adds new constraints on the dev flow. Thanks to survey, I try do just over half of my work on a windows machine so I dont forget about "the other side".
I'm curious if we can pull off something similar by providing a ReadWriter
to the Stdin
of the readline instance and terminal
package.
from survey.
Although if this existed on the side of the scripts, so I could still run them by hand and then we just have Travis run the regression tests in its guaranteed Linux environment. That would definitely solve the problem in the short run (assuming the ReadWrite is non-trivial, which it feels like it would be)
from survey.
As far as effort goes, I think it would take ~5min to create a regression suite with autoexpect
which could be run on travis (which now also supports OSX as well as linux). So to me that has pretty high value with little effort. For windows that is a port maintained by ActiveState: http://docs.activestate.com/activetcl/8.4/expect4win/ which might help with quasi manual testing. I could take a stab at creating these tests and hooking them up to travis, and if you decide you want to go in a different direction we can purge these scripts.
from survey.
Alright that sounds like a good plan. looking forward to seeing what you come up with
from survey.
Blorgh, I played around with it a bit more and the expect scripts that are generated do not fail cleanly when the output does not match, so this probably wont work as a regression after all. Off to try something less easy :)
from survey.
I'm closing this since the autoplay
PR was finally merged
from survey.
Related Issues (20)
- Rename package to `github.com/go-survey/survey/v2` in `go.mod` HOT 1
- jungaretti:jungaretti/add-proto-guide HOT 1
- Please update golang.org/x/text v0.3.3 to latest version due to security issues
- Support for `fmt.Stringer` interface to display structs in `Select`/`MultiSelect`
- how can I disable text color on Select description text? HOT 1
- multiple selection,get the key from the console by default
- Question duplicates on windows cmd HOT 7
- Arrow keys providing garbage input under Windows HOT 1
- Raid1
- template: prompt:4:19: executing "option" at <.CurrentOpt.Value>: can't evaluate field Value in type bgUEpkv_iHV.IA6nAoo
- Ability to 'clear' terminal
- survey.Multiline The display of the input at the bottom of the terminal is covered
- Why survery.v1 go.mod need import survery v2
- How to disable Logic of Cleanup in Prompt HOT 1
- Prompt like "form prompt" from Enquirer
- Support configurable template data
- MultiSelect options spanning multiple columns HOT 1
- Pagination - shortcut key to paginate (page up or page down)
- Excuse me, how to remove the question mark at the beginning of the question? HOT 1
- mips64le not supported
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 survey.