Skip to content

Commit 81da385

Browse files
committed
update contacts suppression check
1 parent fbf6014 commit 81da385

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

cmd/contacts_suppression.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ var contactsSuppressionCheckCmd = &cobra.Command{
4848
if result.IsSuppressed {
4949
suppressed = "yes"
5050
}
51-
fmt.Fprintf(cmd.OutOrStdout(), "Suppressed: %s\n", suppressed)
52-
fmt.Fprintf(cmd.OutOrStdout(), "Removal quota: %d/%d remaining\n", result.RemovalQuota.Remaining, result.RemovalQuota.Limit)
53-
return nil
51+
t := newStyledTable(cmd.OutOrStdout(), "FIELD", "VALUE")
52+
t.Row("isSuppressed", suppressed)
53+
t.Row("removalQuota", fmt.Sprintf("%d/%d remaining", result.RemovalQuota.Remaining, result.RemovalQuota.Limit))
54+
return t.Render()
5455
},
5556
}
5657

0 commit comments

Comments
 (0)