66 "reflect"
77 "strings"
88
9- "github.com/docker/cli/cli/command"
109 "github.com/docker/cli/cli/command/formatter"
1110 "github.com/docker/cli/cli/command/inspect"
1211 "github.com/docker/docker/api/types/swarm"
@@ -147,11 +146,11 @@ func (c *nodeContext) Hostname() string {
147146}
148147
149148func (c * nodeContext ) Status () string {
150- return command .PrettyPrint (string (c .n .Status .State ))
149+ return formatter .PrettyPrint (string (c .n .Status .State ))
151150}
152151
153152func (c * nodeContext ) Availability () string {
154- return command .PrettyPrint (string (c .n .Spec .Availability ))
153+ return formatter .PrettyPrint (string (c .n .Spec .Availability ))
155154}
156155
157156func (c * nodeContext ) ManagerStatus () string {
@@ -163,7 +162,7 @@ func (c *nodeContext) ManagerStatus() string {
163162 reachability = string (c .n .ManagerStatus .Reachability )
164163 }
165164 }
166- return command .PrettyPrint (reachability )
165+ return formatter .PrettyPrint (reachability )
167166}
168167
169168func (c * nodeContext ) TLSStatus () string {
@@ -226,23 +225,23 @@ func (ctx *nodeInspectContext) Hostname() string {
226225}
227226
228227func (ctx * nodeInspectContext ) CreatedAt () string {
229- return command .PrettyPrint (ctx .Node .CreatedAt )
228+ return formatter .PrettyPrint (ctx .Node .CreatedAt )
230229}
231230
232231func (ctx * nodeInspectContext ) StatusState () string {
233- return command .PrettyPrint (ctx .Node .Status .State )
232+ return formatter .PrettyPrint (ctx .Node .Status .State )
234233}
235234
236235func (ctx * nodeInspectContext ) HasStatusMessage () bool {
237236 return ctx .Node .Status .Message != ""
238237}
239238
240239func (ctx * nodeInspectContext ) StatusMessage () string {
241- return command .PrettyPrint (ctx .Node .Status .Message )
240+ return formatter .PrettyPrint (ctx .Node .Status .Message )
242241}
243242
244243func (ctx * nodeInspectContext ) SpecAvailability () string {
245- return command .PrettyPrint (ctx .Node .Spec .Availability )
244+ return formatter .PrettyPrint (ctx .Node .Spec .Availability )
246245}
247246
248247func (ctx * nodeInspectContext ) HasStatusAddr () bool {
@@ -262,7 +261,7 @@ func (ctx *nodeInspectContext) ManagerStatusAddr() string {
262261}
263262
264263func (ctx * nodeInspectContext ) ManagerStatusReachability () string {
265- return command .PrettyPrint (ctx .Node .ManagerStatus .Reachability )
264+ return formatter .PrettyPrint (ctx .Node .ManagerStatus .Reachability )
266265}
267266
268267func (ctx * nodeInspectContext ) IsManagerStatusLeader () bool {
0 commit comments