MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / ensureUI

Function ensureUI

lib/models/project.js:762–777  ·  view source on GitHub ↗
(_ui)

Source from the content-addressed store, hash-verified

760}
761
762function ensureUI(_ui) {
763 let ui = _ui;
764
765 if (!ui) {
766 // TODO: one UI (lib/cli/index.js also has one for now...)
767 const UI = require('console-ui');
768 ui = new UI({
769 inputStream: process.stdin,
770 outputStream: process.stdout,
771 ci: process.env.CI || /^(dumb|emacs)$/.test(process.env.TERM),
772 writeLevel: process.argv.indexOf('--silent') !== -1 ? 'ERROR' : undefined,
773 });
774 }
775
776 return ui;
777}
778
779function findupPath(pathName) {
780 let pkgPath = findUpSync('package.json', { cwd: pathName });

Callers 1

closestSyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…