2 * Copyright (c) 2015, Facebook, Inc.
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the "hack" directory of this source tree.
15 let main (env
: env
) : Exit_status.t
Lwt.t
=
16 let%lwt
{ClientConnect.channels
= ic
, oc
; _
} =
17 ClientConnect.connect
{ ClientConnect.
21 force_dormant_start
= false;
26 watchman_debug_logging
= false;
27 log_inference_constraints
= false;
29 progress_callback
= ClientConnect.tty_progress_reporter
();
30 do_post_handoff_handshake
= true;
31 ignore_hh_version
= false;
32 saved_state_ignore_hhconfig
= false;
33 use_priority_pipe
= false;
37 ServerCommandLwt.connect_debug oc
;
38 (* Exit this via ctrl-C *)
40 print_endline
(Timeout.input_line ic
);
42 Lwt.return
Exit_status.No_error