• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yeoman / generator / 481 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 26 Nov 2013 08:52PM UTC
Files 21
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Nov 2013 08:50PM UTC coverage: 89.64% (+1.4%) from 88.23%
DEBUG="generators:*"

Pull #383

travis-ci

artoale
Abstract I/O interface to support non-cli env.

An `Environment` object, when instantiated, now expects an (optional)
`Adapter` (the default adapter being `TerminalAdapter`, for CLI I/O
sinteraction). This abstraction layer allow for `Environment` clients
other than `yo` to provide their own I/O mechanics (e.g GUI inside of
a code editor plugin for yeoman).

An `Adapter` is an object wich exposes at least 3 methods:

* `prompt` - an [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/)-like
function for collecting user input (available as Base.prototype.prompt)
to generators
* `diff` - function called to show the difference between two strings
* `log` - it's both a function and an object. See (lib/util/log.js)[lib/util/log.js]
for details of the default implementation and which methods are to be
supported.
Pull Request #383: Abstract Base.prototype.prompt to support non-cli env.

1021 of 1139 relevant lines covered (89.64%)

67.67 hits per line

Source Files on job 481.1 (DEBUG="generators:*")
  • Tree
  • List 0
  • Changed 10
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 481
  • Travis Job 481.1
  • 5053d7e5 on github
  • Prev Job for DEBUG="generators:*" on master (#479.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc