mirror of
https://github.com/edoardottt/cariddi.git
synced 2026-09-10 11:47:45 +02:00
update
This commit is contained in:
@@ -297,7 +297,14 @@ func New(scan *Scan) *Results {
|
||||
}
|
||||
}
|
||||
if scan.JSON == true {
|
||||
output.GetJsonString(r, secrets, parameters, filetype, errors, infos)
|
||||
jsonOutput, err := output.GetJsonString(
|
||||
r, secrets, parameters, filetype, errors, infos,
|
||||
)
|
||||
if err == nil {
|
||||
fmt.Println(string(jsonOutput))
|
||||
} else {
|
||||
log.Println(err)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ package output
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -138,8 +137,5 @@ func GetJsonString(
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Output JSON string
|
||||
fmt.Println(string(jsonOutput))
|
||||
|
||||
return jsonOutput, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user