Commit Graph

3 Commits

Author SHA1 Message Date
Anthony DiGirolamo
f53188afca pw_console: Log pane table view
- Table view option for log panes that renders each metadata field in
  it's own justified column.
- Move LogLine class out of log_container.py to it's own file
- Create table_test.py to check correct column size, header, and row
  formatting.
- Fix typos in text_formatting_test.py
- Clean up and split LogContainer.render_content() code (was named
  LogContainer.draw)

Bug: 412
Change-Id: I7354a659a2bb4486e8a84df5618ca3e8121f4413
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/51522
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2021-07-02 01:52:17 +00:00
Anthony DiGirolamo
8a49880bd0 pw_console: ptpython repl, execution and display
Enables a ptpython based repl in the ReplPane. User repl code is
executed in it's own thread with stdout and stderr patched to
capture output.

Change-Id: I005481f1ecd6805ce9a74fbf57ff0f2317b9d2aa
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/48960
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Joe Ethier <jethier@google.com>
2021-06-18 19:26:17 +00:00
Anthony DiGirolamo
26ed98abbd pw_console: Create module and entry point
This CL adds the `pw console` plugin command used to invoke
pw console on the command line and the embed() fuction. At
this point it does nothing. Follow up CLs will build up the
user interface and additional functionality.

Change-Id: I564541cf35c87634ece40604df1afe965f4bf601
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/48642
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Joe Ethier <jethier@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
2021-06-16 02:30:03 +00:00