pusk/bin/main.ml

24 lines
436 B
OCaml
Raw Normal View History

open Pusk.Net
open Pusk.Drivers
2023-05-12 19:36:27 +02:00
2023-05-13 13:06:15 +02:00
let start driver =
let name_driver = prepare driver in
let data_driver = run_process name_driver [] in
let session_id = get_session () in
data_driver, session_id
;;
2023-05-12 20:30:02 +02:00
2023-05-13 13:06:15 +02:00
let stop (driver_process, session_id) =
let data = close_session session_id in
print_endline data;
2023-05-13 11:59:09 +02:00
stop_process driver_process
2023-05-12 19:36:27 +02:00
;;
2023-05-13 13:06:15 +02:00
let main () = ()
let () =
let data = start (Gecko "0.33.0") in
main ();
stop data
;;