Repository: incubator-mynewt-newtmgr
Updated Branches:
  refs/heads/master ff255cbfa -> 7f57aa2d4


newtmgr - pretty print ~/.newtmgr.cp.json file.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/commit/0384fcf0
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/tree/0384fcf0
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/diff/0384fcf0

Branch: refs/heads/master
Commit: 0384fcf0bf64659c7c0cd7b2b9bfa20adaf4ec57
Parents: ff255cb
Author: Christopher Collins <[email protected]>
Authored: Thu Mar 30 10:01:52 2017 -0700
Committer: Christopher Collins <[email protected]>
Committed: Thu Mar 30 10:01:52 2017 -0700

----------------------------------------------------------------------
 newtmgr/config/connprofile.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newtmgr/blob/0384fcf0/newtmgr/config/connprofile.go
----------------------------------------------------------------------
diff --git a/newtmgr/config/connprofile.go b/newtmgr/config/connprofile.go
index 0ca4cc8..da69695 100644
--- a/newtmgr/config/connprofile.go
+++ b/newtmgr/config/connprofile.go
@@ -177,7 +177,7 @@ func (cpm *ConnProfileMgr) GetConnProfileList() 
([]*ConnProfile, error) {
 
 func (cpm *ConnProfileMgr) save() error {
        list, _ := cpm.GetConnProfileList()
-       b, err := json.Marshal(list)
+       b, err := json.MarshalIndent(list, "", "    ")
        if err != nil {
                return util.NewNewtError(err.Error())
        }

Reply via email to