MCPcopy Create free account
hub / github.com/basecamp/hey-cli / newTuiCommand

Function newTuiCommand

internal/cmd/tui.go:13–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 "github.com/basecamp/hey-cli/internal/tui"
12)
13
14var openInRunningTUI = tui.OpenInRunningTUI
15
16type tuiCommand struct {
17 cmd *cobra.Command
18}
19
20func newTuiCommand() *tuiCommand {
21 return &tuiCommand{cmd: newTuiRunner("tui", false)}
22}
23
24func newHeyCommand() *tuiCommand {
25 return &tuiCommand{cmd: newTuiRunner("hey", true)}
26}
27
28func newTuiRunner(use string, hidden bool) *cobra.Command {
29 var topicID int64

Callers 1

newRootCmdFunction · 0.85

Calls 2

RunFunction · 0.92
requireAuthFunction · 0.85

Tested by

no test coverage detected