mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-08-26 11:27:14 +00:00
skeleton json
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
a5a40e80a9
commit
809da21c4a
3 changed files with 26 additions and 0 deletions
|
@ -28,3 +28,15 @@ note () {
|
|||
yell () {
|
||||
printf "%b\n" "${bldylw}$1${txtrst}\n"
|
||||
}
|
||||
|
||||
beginjson () {
|
||||
printf "{\n \"start\": %s," "$1" | tee "$logger.json" 2>/dev/null 1>&2
|
||||
}
|
||||
|
||||
endjson (){
|
||||
printf "\n \"end\": %s \n}\n" "$1" | tee -a "$logger.json" 2>/dev/null 1>&2
|
||||
}
|
||||
|
||||
logjson (){
|
||||
printf "\n \"%s\": \"%s\"," "$1" "$2" | tee -a "$logger.json" 2>/dev/null 1>&2
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue