Skip to content

Commit

Permalink
feat: pretty print target.json
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickkirschen committed Apr 10, 2023
1 parent bb8429a commit d7df170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddir/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def create(target_d: str, name: str, path: str, fast_mode: bool) -> Target:

mkdir(target.this)
with open(sep.join([target.this, 'target.json']), 'w', encoding=ENCODING) as file:
file.write(dumps(target.to_json()))
file.write(dumps(target.to_json(), indent = 2, separators=(',', ': ')))

return target

Expand Down

0 comments on commit d7df170

Please sign in to comment.