fix: dont output secrets table if nothing there
continuous-integration/drone/push Build is passing Details

See coop-cloud/organising#162.
This commit is contained in:
decentral1se 2021-09-10 10:36:04 +02:00
parent 50d663ff6e
commit 855e9ea26d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,10 @@ func action(c *cli.Context) error {
for secret := range secrets {
secretTable.Append([]string{secret, secrets[secret]})
}
defer secretTable.Render()
if len(secrets) > 0 {
defer secretTable.Render()
}
}
tableCol := []string{"Name", "Domain", "Type", "Server"}