File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1919# Test format-docstrings command
2020for file in src/docstrings-format/* .{res,resi}; do
2121 output=" src/expected/$( basename $file ) .expected"
22- DISABLE_COLOR=true ../../_build/install/default/bin/rescript-tools format-docstrings " $file " --stdout > $output
22+ ../../_build/install/default/bin/rescript-tools format-docstrings " $file " --stdout > $output
2323 # # CI. We use LF, and the CI OCaml fork prints CRLF. Convert.
2424 if [ " $RUNNER_OS " == " Windows" ]; then
2525 perl -pi -e ' s/\r\n/\n/g' -- $output
Original file line number Diff line number Diff line change @@ -54,14 +54,10 @@ let main () =
5454 logAndExit (Tools. extractDocs ~entry PointFile:path ~debug: false )
5555 | _ -> logAndExit (Error docHelp))
5656 | "format-docstrings" :: rest -> (
57- (try
58- match Sys. getenv " DISABLE_COLOR" with
59- | "true" -> Clflags. color := Some Misc.Color. Never
60- | _ -> ()
61- with Not_found -> () );
6257 match rest with
6358 | [" -h" ] | [" --help" ] -> logAndExit (Ok formatDocstringsHelp)
6459 | [path; " --stdout" ] -> (
60+ Clflags. color := Some Misc.Color. Never ;
6561 match
6662 Tools.FormatDocstrings. formatDocstrings ~output Mode:`Stdout
6763 ~entry PointFile:path
You can’t perform that action at this time.
0 commit comments