MCPcopy
hub / github.com/cli/cli / NewApp

Function NewApp

pkg/cmd/codespace/common.go:39–50  ·  view source on GitHub ↗
(io *iostreams.IOStreams, exe executable, apiClient apiClient, browser browser.Browser, remotes func() (clicontext.Remotes, error))

Source from the content-addressed store, hash-verified

37}
38
39func NewApp(io *iostreams.IOStreams, exe executable, apiClient apiClient, browser browser.Browser, remotes func() (clicontext.Remotes, error)) *App {
40 errLogger := log.New(io.ErrOut, "", 0)
41
42 return &App{
43 io: io,
44 apiClient: apiClient,
45 errLogger: errLogger,
46 executable: exe,
47 browser: browser,
48 remotes: remotes,
49 }
50}
51
52// StartProgressIndicatorWithLabel starts a progress indicator with a message.
53func (a *App) StartProgressIndicatorWithLabel(s string) {

Callers 9

testingRebuildAppFunction · 0.85
testingPortsAppFunction · 0.85
TestEditFunction · 0.85
testingCodeAppFunction · 0.85
TestDeleteFunction · 0.85
NewCmdCodespaceFunction · 0.85
TestApp_SelectFunction · 0.85
testingLogsAppFunction · 0.85
testingSSHAppFunction · 0.85

Calls

no outgoing calls

Tested by 8

testingRebuildAppFunction · 0.68
testingPortsAppFunction · 0.68
TestEditFunction · 0.68
testingCodeAppFunction · 0.68
TestDeleteFunction · 0.68
TestApp_SelectFunction · 0.68
testingLogsAppFunction · 0.68
testingSSHAppFunction · 0.68