sapling/eden/cli
Adam Simpkins b634a9e1ac refactor terminal output handling in eden doctor
Summary:
This replaces the `StdoutPrinter` class with a different `Output` class
interface that combines both the `StdoutPrinter` functionality and the
underlying I/O object being printed to.

Previously the doctor code had to pass around two separate `out` and
`printer` objects.  This simplifies things so that only one object has to be
passed around.

This also adds some additional error checking around the curses
initialization, and falls back to a plain output object if anything goes wrong
during setup.  Previously we had seen some reports of `eden doctor` failing
due to errors in the terminal setup code.

Reviewed By: strager

Differential Revision: D8870494

fbshipit-source-id: a6dbafdde9aa5e1a0336fa7d723d83fa7d2426ca
2018-07-18 18:36:52 -07:00
..
test refactor terminal output handling in eden doctor 2018-07-18 18:36:52 -07:00
buck.py refactor and split out some cli functions 2018-05-10 13:49:44 -07:00
cmd_util.py enable Black python formatting and apply to eden 2018-05-09 21:37:07 -07:00
config.py have "eden clone" create a README file for unmounted checkouts 2018-06-26 21:06:42 -07:00
configinterpolator.py enable Black python formatting and apply to eden 2018-05-09 21:37:07 -07:00
daemon.py update the CLI to make use of edenfs daemonization 2018-06-26 12:07:08 -07:00
debug.py refactor terminal output handling in eden doctor 2018-07-18 18:36:52 -07:00
doctor.py refactor terminal output handling in eden doctor 2018-07-18 18:36:52 -07:00
filesystem.py Eden doctor should check that bind mounts in the config are mounted 2018-06-20 18:07:41 -07:00
fsck.py initial start for an fsck command 2018-07-16 18:51:48 -07:00
main.py refactor terminal output handling in eden doctor 2018-07-18 18:36:52 -07:00
mtab.py Eden doctor should check that bind mounts in the config are mounted 2018-06-20 18:07:41 -07:00
overlay.py initial start for an fsck command 2018-07-16 18:51:48 -07:00
rage.py Eden doctor should check that bind mounts in the config are mounted 2018-06-20 18:07:41 -07:00
stats_print.py Reformat already opted in directories with Black Beta @allow-large-files 2018-05-18 23:07:24 -07:00
stats.py Provide real-time values for memory statistics 2018-06-21 15:51:51 -07:00
subcmd.py Upgrade to 18.5b1 2018-05-30 01:11:47 -07:00
ui.py refactor terminal output handling in eden doctor 2018-07-18 18:36:52 -07:00
util.py improve behavior of "eden restart" 2018-07-11 19:05:32 -07:00
version.py enable Black python formatting and apply to eden 2018-05-09 21:37:07 -07:00