feat: cli-folders-cmd

This commit is contained in:
quinton
2023-11-25 09:44:51 +00:00
parent 84e32faac9
commit b212681d09
6 changed files with 567 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package visualize
import "github.com/Infisical/infisical-merge/packages/models"
func PrintAllFoldersDetails(folders []models.SingleFolder) {
rows := [][3]string{}
for _, folder := range folders {
rows = append(rows, [...]string{folder.ID, folder.Name, ""})
}
headers := [...]string{"FOLDER ID", "FOLDER NAME", "VERSION"}
Table(headers, rows)
}