mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
15 lines
378 B
Go
15 lines
378 B
Go
package visualize
|
|
|
|
import "github.com/Infisical/infisical-merge/packages/models"
|
|
|
|
func PrintAllSecretDetails(secrets []models.SingleEnvironmentVariable) {
|
|
rows := [][]string{}
|
|
for _, secret := range secrets {
|
|
rows = append(rows, []string{secret.Key, secret.Value, secret.Type})
|
|
}
|
|
|
|
headers := []string{"Secret name", "Secret vaule", "Secret type"}
|
|
|
|
Table(headers, rows)
|
|
}
|