-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell: command ls
and nodes
support output in json mode
#290
Conversation
在空行、分段这些细节上还需要改进,目前的打印结果层次不太清晰,譬如:
|
fixed |
为了显示清晰,不同的section之间最好用空行分隔,譬如下面就没有:
|
这得统一改rdsn,这个PR就不特殊处理了 |
nodes_detail = self._run_shell("nodes -d -j").strip() | ||
|
||
primaries_per_node = {} | ||
min_ = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里为什么多加了下划线
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min是库函数...
现在rdsn也还没有提交,先一起都改好? |
fixed |
Former-commit-id: 4a78724131e5aadb4788693d81721a273cf934b7 [formerly 2d35dce] Former-commit-id: 3cab8745a7f36f33c787650e073694c61a1c67c2
Add an extra flag
-j
for commandls
andnodes
. Output with-j
looks like: