mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-14 01:48:18 -05:00
15 lines
385 B
Go
15 lines
385 B
Go
package visualize
|
|
|
|
import "github.com/Infisical/infisical-merge/packages/models"
|
|
|
|
func PrintAllSecretDetails(secrets []models.SingleEnvironmentVariable) {
|
|
rows := [][3]string{}
|
|
for _, secret := range secrets {
|
|
rows = append(rows, [...]string{secret.Key, secret.Value, secret.Type})
|
|
}
|
|
|
|
headers := [...]string{"SECRET NAME", "SECRET VALUE", "SECRET TYPE"}
|
|
|
|
Table(headers, rows)
|
|
}
|