saf
saf copied to clipboard
add "saf supplement tag" command
Develop "saf supplement tag -i <current-hdf-file.json> -m <existing-to-new_tag_mapping_file> -e <existing tag key name> -n <new tag key name> -o <output-hdf-file.json>"
command to the SAF CLI to add tags based on existing tags within an HDF results file.
The mapping file is a two-column csv or json. Header dictates the existing tag name and new tag name as keys for matching/adding.
(will follow-up with sample csv)
old_name (optional), new_name (optional), value for tag (optional) nist, cool_nist,, ,cci, 123123123, existingtag,,new_value
tag extender concept column-header-existing-tag,column-header-new-tag,maybe-other-column possible-existing-tag-value,value-for-new-tag
outta the gate csv before json
ok to overwrite values
handle arrays for the input (so if input array is cci and there is cci-1 and cci-2, then we get the results for both in output tag array)
duplicate values in output array is fine
default is for all controls, but maybe option to specify which controls in particular
This would also make sense for the profile itself as well - I think we outlined this came feature request before. I will see if I can find it
Updating the results data only would lead very quickly to fixing the issue at the source