podhmo / dictknife

armyknife of handling dict object
MIT License
19 stars 4 forks source link

dictknife mkdict: --compact option #56

Closed podhmo closed 6 years ago

podhmo commented 6 years ago
$ dictknife mkdict --squash --name foo --age 20 ";" --name bar
{
  "name": "foo",
  "age": 20
}
{
  "name": "bar"
}

with --compact

$ dictknife mkdict --squash --compact--name foo --age 20 ";" --name bar
{"name": "foo", "age": 20}
{"name": "bar"}
podhmo commented 6 years ago

generally, compact output is needed? (e.g. loading.dumpxxxx)

podhmo commented 6 years ago
$ dictknife --compact mkdict --squash --name foo --age 20 ";" --name bar
INFO:dictknife.commands.dictknife:apply dictknife.loading.modification.compact.setup()
{"name": "foo", "age": 20}
{"name": "bar"}
podhmo commented 6 years ago

support also #41 ?