sapling/eden/fs
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
..
benchharness add 4k random writes benchmark 2020-07-14 16:13:37 -07:00
benchmarks Remove dead includes in eden 2020-10-09 15:25:47 -07:00
cli cli: disable edenfsctl top for Windows 2021-05-05 18:24:12 -07:00
cli_rs make widgets for top 2021-04-09 12:27:04 -07:00
config autodeps: remove @manual for cpptoml 2021-04-29 16:19:09 -07:00
docs run linter in eden/fs/docs 2021-01-25 16:13:54 -08:00
fuse fuse: remove @manual from FuseTypes.h 2021-04-29 17:30:16 -07:00
inodes autodeps: remove @manual for cpptoml 2021-04-29 16:19:09 -07:00
journal journal: coalesce no-op checkout events 2021-02-26 16:28:44 -08:00
model add unit tests for TreeCache 2021-04-27 17:38:40 -07:00
monitor Apply clang-format update fixes 2021-01-10 10:06:29 -08:00
nfs nfs: add to Executor directly without creating a future 2021-04-28 17:06:23 -07:00
notifications notifications: support Windows 2020-11-11 09:37:56 -08:00
prjfs telemetry: switch to using quantile stats instead of histograms 2021-02-14 16:37:08 -08:00
py Backout py3 only changes from windows_thrift 2021-04-22 10:29:49 -07:00
rocksdb Remove dead includes in eden 2019-10-11 16:45:01 -07:00
scripts move eden/scripts/ into eden/fs/ 2020-11-04 18:29:49 -08:00
service service: remove dependency on curl 2021-04-29 19:41:04 -07:00
sqlite overlay: use PersistentSqliteStatement in TreeOverlayStore 2021-03-15 12:01:48 -07:00
store creating RE CAS Digest proxy 2021-04-28 14:59:39 -07:00
takeover Daily arc lint --take CLANGFORMAT 2021-04-28 04:38:27 -07:00
telemetry follow-up to sandcastle_instance_id 2021-04-06 13:14:12 -07:00
testharness use custom in memory tree cache 2021-04-27 17:38:40 -07:00
third-party fs: update fuse_kernel_linux.h 2021-03-17 20:55:43 -07:00
utils utils: define symlink type for Windows 2021-04-29 13:17:54 -07:00
CMakeLists.txt nfs: make it compile with getdeps builds 2021-02-03 17:54:54 -08:00