Module Driver.Commands

Helper functions used by top-level commands

val get_output : ?ext:string -> Catala_utils.Global.options -> Catala_utils.Global.raw_file option -> string option * ((Stdlib.out_channel -> 'a) -> 'a)

bounded open of the expected output file

val get_output_format : ?ext:string -> Catala_utils.Global.options -> Catala_utils.Global.raw_file option -> string option * ((Stdlib.Format.formatter -> 'a) -> 'a)
val get_scope_uid : Shared_ast.decl_ctx -> string -> Shared_ast.ScopeName.t
val commands : unit Cmdliner.Cmd.t list

The list of built-in catala subcommands, as expected by Cmdliner.Cmd.group