Skip to content

Commit

Permalink
Constrain Report.Arguments by a signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aantron committed Aug 27, 2019
1 parent 26d42e8 commit 6a370bc
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/report/report.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@

module Common = Bisect_common

module Arguments =
module Arguments :
sig
val report_outputs :
([ `Html | `Csv | `Text | `Dump | `Coveralls ] * string) list ref
val verbose : bool ref
val tab_size : int ref
val report_title : string ref
val csv_separator : string ref
val search_path : string list ref
val raw_coverage_files : string list ref
val summary_only : bool ref
val ignore_missing_files : bool ref
val service_name : string ref
val service_job_id : string ref
val repo_token : string ref

val parse_args : unit -> unit
val print_usage : unit -> unit
end =
struct
type output_kind = [
| `Html
| `Csv
| `Text
| `Dump
| `Coveralls
]

let report_outputs = ref []

let add_output o =
Expand Down

0 comments on commit 6a370bc

Please sign in to comment.