key utils output with cdc
This commit is contained in:
parent
952aedc4f1
commit
17a861da43
|
@ -1,7 +1,6 @@
|
||||||
package keys
|
package keys
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
@ -77,6 +76,7 @@ func printInfo(info keys.Info) {
|
||||||
printKeyOutput(ko)
|
printKeyOutput(ko)
|
||||||
case "json":
|
case "json":
|
||||||
out, err := MarshalJSON(ko)
|
out, err := MarshalJSON(ko)
|
||||||
|
//out, err := json.MarshalIndent(kos, "", "\t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,8 @@ func printInfos(infos []keys.Info) {
|
||||||
printKeyOutput(ko)
|
printKeyOutput(ko)
|
||||||
}
|
}
|
||||||
case "json":
|
case "json":
|
||||||
out, err := json.MarshalIndent(kos, "", "\t")
|
out, err := MarshalJSON(ko)
|
||||||
|
//out, err := json.MarshalIndent(kos, "", "\t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue