fix: dont output if no secrets

This commit is contained in:
decentral1se 2022-01-02 15:19:30 +01:00
parent 832e8e5a96
commit 0b46909961
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 6 additions and 1 deletions

View File

@ -249,7 +249,12 @@ var appSecretLsCommand = &cli.Command{
table.Append(tableRow)
}
table.Render()
if table.NumLines() > 0 {
table.Render()
} else {
logrus.Warnf("no secrets stored for %s", app.Name)
}
return nil
},
BashComplete: autocomplete.AppNameComplete,