Sha256: cc13dde52a9a3aaf7c68653f85fefc580dce737ba7bf25d8e22f4851f0836442

Contents?: true

Size: 633 Bytes

Versions: 143

Compression:

Stored size: 633 Bytes

Contents

open Core.Std

let is_directory =
  Command.Spec.Arg_type.create
    (fun n ->
       match Sys.is_directory n with
       | `Yes -> n
       | `No | `Unknown ->
         eprintf "'%s' is not a regular folder.\n%!" n;
         exit 1
    )

let command =
  Command.basic
    ~summary:"Reports errors in canonical data."
    Command.Spec.(
      empty
      +> flag "-c" (optional_with_default "../../../x-common/exercises" is_directory) ~doc:"string Directory containing canonical data."
    )
    (fun canonical_data_folder () -> Controller.check_canonical_data canonical_data_folder)

let () =
  Command.run ~version:"0.1" command

Version data entries

143 entries across 143 versions & 1 rubygems

Version Path
trackler-2.1.0.21 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.20 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.19 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.18 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.17 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.16 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.15 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.14 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.13 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.12 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.11 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.10 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.9 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.8 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.7 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.6 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.5 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.4 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.3 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml
trackler-2.1.0.2 tracks/ocaml/tools/test-generator/src/canonical_data_checker.ml