kezhenxu94 opened a new pull request #9: [Feature] Support multiple display styles, JSON, YAML, ASCII Table URL: https://github.com/apache/skywalking-cli/pull/9 Seems that people like table style, https://github.com/apache/skywalking-cli/pull/6#discussion_r343972888 , https://github.com/apache/skywalking-cli/pull/6#issuecomment-551076830 , this patch abstract a display layer and provides several display style implementations, JSON, YAML and ASCII table, works like this: ```shell skywalking-cli (feature/display-styles $) -> ./bin/swctl --display=table --debug=false service ls +----+----------+ | ID | NAME | +----+----------+ | 4 | projectA | | 2 | projectB | | 5 | projectD | | 3 | projectC | +----+----------+ skywalking-cli (feature/display-styles $) -> ./bin/swctl --display=json --debug=false service ls [{"id":"4","name":"projectA"},{"id":"2","name":"projectB"},{"id":"5","name":"projectD"},{"id":"3","name":"projectC"}] skywalking-cli (feature/display-styles $) -> ./bin/swctl --display=yaml --debug=false service ls - id: "4" name: projectA - id: "2" name: projectB - id: "5" name: projectD - id: "3" name: projectC skywalking-cli (feature/display-styles $) -> ``` will supplement the related documentations after #8 is merged
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services