Skip to content

Commit cd6600a

Browse files
committed
Change name from data -> subscription
Signed-off-by: Evan Harris <[email protected]>
1 parent 02b1a05 commit cd6600a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

pkg/app/execontext.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
)
1717

1818
const (
19-
ofJSON = "json"
20-
ofText = "text"
21-
ofData = "data"
19+
ofJSON = "json"
20+
ofText = "text"
21+
ofSubscription = "subscription"
2222
)
2323

2424
type ExecutionContext struct {
@@ -369,7 +369,7 @@ var (
369369

370370
func (ref *Output) Info(infoType string, params ...OutVars) {
371371
// TODO - carry this pattern to other Output methods
372-
if ref.Quiet && ref.OutputFormat != ofData {
372+
if ref.Quiet && ref.OutputFormat != ofSubscription {
373373
return
374374
}
375375

@@ -404,7 +404,7 @@ func (ref *Output) Info(infoType string, params ...OutVars) {
404404
fmt.Println(string(jsonData))
405405
case ofText:
406406
fmt.Printf("cmd=%s info=%s%s%s\n", ref.CmdName, itcolor(infoType), sep, data)
407-
case ofData:
407+
case ofSubscription:
408408
ref.internalDataCh <- msg // Send data to the internal channel
409409
default:
410410
log.Fatalf("Unknown console output flag: %s\n. It should be either 'text' or 'json", ref.OutputFormat)

pkg/app/master/command/debug/tui.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ func (m TUI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
100100
// Quiet -> when set to true, returns on the first line for each
101101
// Execution context method
102102
true,
103-
// output type == "subscription" (better name?)
104-
"data",
103+
"subscription",
105104
debuggableContainersChannelMap,
106105
)
107106

0 commit comments

Comments
 (0)