1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 14:24:12 +00:00

Refactor "Standards" to "Frameworks"

This commit is contained in:
Craine Runton
2020-09-15 14:52:22 -05:00
parent dbe49a09b3
commit 84e439e7cc
17 changed files with 180 additions and 106 deletions

View File

@@ -24,7 +24,7 @@ func todoAction(c *cli.Context) error {
}
w := tablewriter.NewWriter(os.Stdout)
w.SetHeader([]string{"Standard", "Control", "Satisfied?", "Name"})
w.SetHeader([]string{"Framework", "Control", "Satisfied?", "Name"})
type row struct {
standard string
@@ -36,7 +36,7 @@ func todoAction(c *cli.Context) error {
satisfied := model.ControlsSatisfied(d)
var rows []row
for _, std := range d.Standards {
for _, std := range d.Frameworks {
for id, c := range std.Controls {
sat := "NO"
if _, ok := satisfied[id]; ok {