XD-DENG commented on a change in pull request #14546:
URL: https://github.com/apache/airflow/pull/14546#discussion_r585016991



##########
File path: airflow/cli/simple_table.py
##########
@@ -62,6 +63,14 @@ def print_as_table(self, data: List[Dict]):
             table.add_row(*[str(d) for d in row.values()])
         self.print(table)
 
+    def print_as_plain_table(self, data: List[Dict]):
+        """Renders list of dictionaries as a simple table than can be easily 
piped"""
+        if not data:
+            self.print("No data found")
+            return
+        output = tabulate(data, tablefmt="plain")

Review comment:
       ```suggestion
           output = tabulate(data, tablefmt="plain", headers='keys')
   ```
   This change should do what I mentioned above. Referenced from the original 
implementation.




----------------------------------------------------------------
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:
[email protected]


Reply via email to