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