MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / Run

Function Run

internal/tui/app.go:488–496  ·  view source on GitHub ↗

Run starts the TUI application. output specifies where bubbletea renders. If nil, defaults to os.Stdout.

(port int, secretKey string, hook *LogHook, output io.Writer)

Source from the content-addressed store, hash-verified

486// Run starts the TUI application.
487// output specifies where bubbletea renders. If nil, defaults to os.Stdout.
488func Run(port int, secretKey string, hook *LogHook, output io.Writer) error {
489 if output == nil {
490 output = os.Stdout
491 }
492 app := NewApp(port, secretKey, hook)
493 p := tea.NewProgram(app, tea.WithAltScreen(), tea.WithOutput(output))
494 _, err := p.Run()
495 return err
496}
497
498func (a App) broadcastToAllTabs(msg tea.Msg) (tea.Model, tea.Cmd) {
499 var cmds []tea.Cmd

Callers 1

mainFunction · 0.92

Calls 2

NewAppFunction · 0.85
RunMethod · 0.80

Tested by

no test coverage detected