@@ -110,22 +110,22 @@ func printSandboxes(cmd *cobra.Command, clients *shared.ClientFactory, token str
110110
111111 timeFormat := "2006-01-02" // We only support the granularity of the day for now, rather than a more precise datetime
112112 for _ , s := range sandboxes {
113- cmd . Printf ( " %s (%s)\n " , style .Bold (s .SandboxName ), s .SandboxTeamID )
113+ clients . IO . PrintInfo ( ctx , false , " %s (%s)" , style .Bold (s .SandboxName ), s .SandboxTeamID )
114114
115115 if s .SandboxDomain != "" {
116- cmd . Printf ( " %s\n " , style .Secondary (fmt .Sprintf ("URL: https://%s.slack.com" , s .SandboxDomain )))
116+ clients . IO . PrintInfo ( ctx , false , " %s" , style .Secondary (fmt .Sprintf ("URL: https://%s.slack.com" , s .SandboxDomain )))
117117 }
118118
119119 if s .DateCreated > 0 {
120- cmd . Printf ( " %s\n " , style .Secondary (fmt .Sprintf ("Created: %s" , time .Unix (s .DateCreated , 0 ).Format (timeFormat ))))
120+ clients . IO . PrintInfo ( ctx , false , " %s" , style .Secondary (fmt .Sprintf ("Created: %s" , time .Unix (s .DateCreated , 0 ).Format (timeFormat ))))
121121 }
122122
123123 if s .Status != "" {
124124 status := style .Secondary (fmt .Sprintf ("Status: %s" , strings .ToTitle (s .Status )))
125125 if strings .EqualFold (s .Status , "archived" ) {
126- cmd . Printf ( " %s %s\n " , style .Emoji ("warning" ), status )
126+ clients . IO . PrintInfo ( ctx , false , " %s %s" , style .Emoji ("warning" ), status )
127127 } else {
128- cmd . Printf ( " %s%s\n " , style .Emoji ("green_circle" ), status )
128+ clients . IO . PrintInfo ( ctx , false , " %s%s" , style .Emoji ("green_circle" ), status )
129129 }
130130 }
131131
@@ -138,10 +138,10 @@ func printSandboxes(cmd *cobra.Command, clients *shared.ClientFactory, token str
138138 if archivedDate .Before (todayDate ) {
139139 label = "Archived:"
140140 }
141- cmd . Printf ( " %s\n " , style .Secondary (fmt .Sprintf ("%s %s" , label , archivedTime .Format (timeFormat ))))
141+ clients . IO . PrintInfo ( ctx , false , " %s" , style .Secondary (fmt .Sprintf ("%s %s" , label , archivedTime .Format (timeFormat ))))
142142 }
143143
144- cmd . Println ( )
144+ clients . IO . PrintInfo ( ctx , false , "" )
145145 }
146146
147147 clients .IO .PrintInfo (ctx , false , "Learn more at %s" , style .Secondary ("https://docs.slack.dev/tools/developer-sandboxes" ))
0 commit comments