Skip to content

Commit b370a1e

Browse files
committed
cliui.infof
1 parent 4bb62b5 commit b370a1e

14 files changed

+16
-16
lines changed

cli/organizationmembers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (r *RootCmd) listOrganizationMembers(orgContext *OrganizationContext) *serp
171171
}
172172

173173
if out == "" {
174-
_, _ = fmt.Fprintln(inv.Stderr, "No organization members found.")
174+
cliui.Infof(inv.Stderr, "No organization members found.")
175175
return nil
176176
}
177177

cli/organizationroles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (r *RootCmd) showOrganizationRoles(orgContext *OrganizationContext) *serpen
9393
}
9494

9595
if out == "" {
96-
_, _ = fmt.Fprintln(inv.Stderr, "No organization roles found.")
96+
cliui.Infof(inv.Stderr, "No organization roles found.")
9797
return nil
9898
}
9999

cli/provisionerjobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (r *RootCmd) provisionerJobsList() *serpent.Command {
111111
}
112112

113113
if out == "" {
114-
_, _ = fmt.Fprintln(inv.Stderr, "No provisioner jobs found.")
114+
cliui.Infof(inv.Stderr, "No provisioner jobs found.")
115115
return nil
116116
}
117117

cli/provisioners.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (r *RootCmd) provisionerList() *serpent.Command {
8888
}
8989

9090
if out == "" {
91-
_, _ = fmt.Fprintln(inv.Stderr, "No provisioner daemons found.")
91+
cliui.Infof(inv.Stderr, "No provisioner daemons found.")
9292
return nil
9393
}
9494

cli/schedule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (r *RootCmd) scheduleShow() *serpent.Command {
130130
}
131131

132132
if out == "" {
133-
_, _ = fmt.Fprintln(inv.Stderr, "No schedules found.")
133+
cliui.Infof(inv.Stderr, "No schedules found.")
134134
return nil
135135
}
136136

cli/task_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (r *RootCmd) taskList() *serpent.Command {
168168
return xerrors.Errorf("format tasks: %w", err)
169169
}
170170
if out == "" {
171-
_, _ = fmt.Fprintln(inv.Stderr, "No tasks found.")
171+
cliui.Infof(inv.Stderr, "No tasks found.")
172172
return nil
173173
}
174174
_, _ = fmt.Fprintln(inv.Stdout, out)

cli/task_logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (r *RootCmd) taskLogs() *serpent.Command {
6060
}
6161

6262
if out == "" {
63-
_, _ = fmt.Fprintln(inv.Stderr, "No task logs found.")
63+
cliui.Infof(inv.Stderr, "No task logs found.")
6464
return nil
6565
}
6666

cli/templatepresets.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (r *RootCmd) templatePresetsList() *serpent.Command {
106106
if len(presets) == 0 {
107107
cliui.Infof(
108108
inv.Stdout,
109-
"No presets found for template %q and template-version %q.\n", template.Name, version.Name,
109+
"No presets found for template %q and template-version %q.", template.Name, version.Name,
110110
)
111111
return nil
112112
}
@@ -115,7 +115,7 @@ func (r *RootCmd) templatePresetsList() *serpent.Command {
115115
if formatter.FormatID() == "table" {
116116
cliui.Infof(
117117
inv.Stdout,
118-
"Showing presets for template %q and template version %q.\n", template.Name, version.Name,
118+
"Showing presets for template %q and template version %q.", template.Name, version.Name,
119119
)
120120
}
121121
rows := templatePresetsToRows(presets...)
@@ -125,7 +125,7 @@ func (r *RootCmd) templatePresetsList() *serpent.Command {
125125
}
126126

127127
if out == "" {
128-
_, _ = fmt.Fprintln(inv.Stderr, "No template presets found.")
128+
cliui.Infof(inv.Stderr, "No template presets found.")
129129
return nil
130130
}
131131

cli/templateversions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (r *RootCmd) templateVersionsList() *serpent.Command {
122122
}
123123

124124
if out == "" {
125-
_, _ = fmt.Fprintln(inv.Stderr, "No template versions found.")
125+
cliui.Infof(inv.Stderr, "No template versions found.")
126126
return nil
127127
}
128128

cli/tokens.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (r *RootCmd) listTokens() *serpent.Command {
258258
}
259259

260260
if out == "" {
261-
_, _ = fmt.Fprintln(inv.Stderr, "No tokens found.")
261+
cliui.Info(inv.Stderr, "No tokens found.")
262262
return nil
263263
}
264264

0 commit comments

Comments
 (0)