sapling/eden/fs/cli
Zeyi (Rice) Fan dfc5480620 cli: disable edenfsctl top for Windows
Summary:
Currently running `edenfsctl top` will crash on Windows:

```
Traceback (most recent call last):
  File "C:\Python38\Lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\Lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\tools\eden\bin\edenfsctl.exe\__main__.py", line 3, in <module>
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 2253, in zipapp_main
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 2236, in main
  File "C:\Python38\Lib\asyncio\runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "C:\Python38\Lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 2212, in async_main
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 1059, in run
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\top.py", line 395, in __init__
  File "C:\Python38\Lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'
```

This diff will let it prints an error message.

Reviewed By: xavierd

Differential Revision: D28207330

fbshipit-source-id: a465fe5941b469f4a1ef964f1d4dc8a593639e7c
2021-05-05 18:24:12 -07:00
..
doctor suppress errors in fbcode/eden - batch 1 2021-05-04 15:25:14 -07:00
test cli: enable tree overlay for Windows users 2021-04-19 20:14:22 -07:00
trace add C++ implementation of trace hg 2021-02-25 11:31:00 -08:00
__init__.py remediation of S205607 2020-07-17 17:16:13 -07:00
buck.py Fix environment in subprocess calls 2021-03-17 18:59:49 -07:00
CMakeLists.txt Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
cmd_util.py update eden du to display an aggregated result of all mounts. 2020-06-10 19:29:25 -07:00
config.py cli: enable tree overlay for Windows users 2021-04-19 20:14:22 -07:00
configinterpolator.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
configutil.py Convert type check targets in eden to use configuration 2020-05-08 15:24:57 -07:00
daemon_util.py win: add eden.exe to the package 2020-09-08 16:33:55 -07:00
daemon.py Add sandcastle_instance_id column to scuba 2021-04-03 00:11:47 -07:00
debug_posix.py suppress errors in eden - batch 1 2020-07-20 13:29:51 -07:00
debug_windows.py cli: add debug state for checking projectedfs file state 2021-03-10 10:05:42 -08:00
debug.py log file accesses to edenfs_file_stats_accesses 2021-04-12 16:58:09 -07:00
filesystem.py cli: enable doctor on Windows 2020-08-28 19:49:37 -07:00
fsck.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00
hg_util.py suppress errors in eden - batch 1 2020-12-15 15:22:22 -08:00
logfile.py Update pyre version for eden 2020-04-23 12:09:39 -07:00
main.py cli: disable edenfsctl top for Windows 2021-05-05 18:24:12 -07:00
mtab.py Move eden.cli namespace to eden.fs.cli 2020-03-25 11:46:56 -07:00
overlay.py apply pyfmt with usort to opted-in sources 2020-11-10 21:25:54 -08:00
prefetch_profile.py fix prefetch-profile activate 2021-04-15 09:30:16 -07:00
prefetch.py allow backgrounding prefetches within the eden daemon 2021-04-26 16:16:21 -07:00
prjfs.py cli: add debug state for checking projectedfs file state 2021-03-10 10:05:42 -08:00
proc_utils_win.py service: unify startup on Windows/Linux/macOS 2020-10-22 16:24:17 -07:00
proc_utils.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
rage.py Add annotations to eden/fs/cli/rage.py 2021-03-01 11:03:35 -08:00
redirect.py apply upgraded black 21.4b2 formatting to fbsource 2021-05-04 22:16:51 -07:00
stats_print.py remove stats memory command 2020-05-05 12:09:11 -07:00
stats.py update stats local-store column list 2020-09-30 15:16:00 -07:00
subcmd.py allow async subcmd run functions 2020-06-22 11:27:11 -07:00
systemd_service.py make systemd management functions explicitly async 2020-07-07 11:31:33 -07:00
systemd.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
tabulate.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
telemetry.py apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
top.py Fix bug in eden top when resizing terminal too narrowly. 2021-02-26 10:09:34 -08:00
trace_cmd.py add C++ implementation of trace hg 2021-02-25 11:31:00 -08:00
trace.py rename EdenInstance.get_thrift_client to get_thrift_client_legacy 2020-09-17 13:25:00 -07:00
ui.py Convert type check targets in eden to use configuration 2020-05-02 21:16:55 -07:00
util.py Add annotations to eden/fs/cli/util.py 2021-04-22 11:35:20 -07:00
version.py update edenfsctl to report the compile-time version 2020-04-22 12:48:48 -07:00
win_ui.py Move cli/ directory from eden/ to eden/fs (Without changing namespace) 2020-03-25 11:18:30 -07:00