Add Output Fields support (#1192)
This commit is contained in:
1 parent
1948984ca2
commit
22d5c88a0b
84 files changed
+5688
-2122
No files matched your search
@@ -20,6 +20,9 @@ import (
|
||||
var asciiSpace = [256]uint8{'\t': 1, '\n': 1, '\v': 1, '\f': 1, '\r': 1, ' ': 1}
|
||||
|
||||
func ScopeInfoForOutput(scp *scopes.ScopeInfo, maxLength int) string {
|
||||
if scp == nil {
|
||||
return " <not included in response>"
|
||||
}
|
||||
vals := map[string]interface{}{
|
||||
"ID": scp.Id,
|
||||
"Type": scp.Type,
|
||||
|
||||
Reference in new issue
Block a user