Skip to content

Commit 8db0c70

Browse files
kiukchungfacebook-github-bot
authored andcommitted
(1/n torchx-allocator)(monarch/cli) pretty print json in info subcommand (#294)
Summary: Pull Request resolved: #294 pretty print json for `monarch info` subcommand Reviewed By: ahmadsharif1 Differential Revision: D76845620 fbshipit-source-id: 70a1a1ba3337490775e8efd8847ce2923f4b0705
1 parent 81f5894 commit 8db0c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/monarch/tools/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def run(self, args: argparse.Namespace) -> None:
112112
file=sys.stderr,
113113
)
114114
else:
115-
json.dump(server_spec.to_json(), fp=sys.stdout)
115+
json.dump(server_spec.to_json(), indent=2, fp=sys.stdout)
116116

117117

118118
class KillCmd:

0 commit comments

Comments
 (0)