MCPcopy
hub / github.com/cloudfoundry/cli / NewUI

Function NewUI

cf/terminal/ui.go:63–71  ·  view source on GitHub ↗
(r io.Reader, w io.Writer, printer Printer, logger trace.Printer)

Source from the content-addressed store, hash-verified

61}
62
63func NewUI(r io.Reader, w io.Writer, printer Printer, logger trace.Printer) UI {
64 return &terminalUI{
65 stdin: r,
66 stdout: w,
67 printer: printer,
68 logger: logger,
69 scanner: bufio.NewScanner(r),
70 }
71}
72
73func (ui terminalUI) Writer() io.Writer {
74 return ui.stdout

Callers 14

CallCoreCommandMethod · 0.92
GetAppMethod · 0.92
GetAppsMethod · 0.92
GetOrgsMethod · 0.92
GetSpacesMethod · 0.92
GetServicesMethod · 0.92
GetOrgUsersMethod · 0.92
GetSpaceUsersMethod · 0.92
GetOrgMethod · 0.92
GetSpaceMethod · 0.92
GetServiceMethod · 0.92
MainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected