We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0b6de9 commit 4d65862Copy full SHA for 4d65862
tools/src/tools.ml
@@ -1779,5 +1779,8 @@ module Migrate = struct
1779
Printf.fprintf oc "%s" contents;
1780
close_out oc;
1781
Ok (Filename.basename path ^ ": File migrated successfully"))
1782
- | Ok _ -> Ok (Filename.basename path ^ ": File did not need migration")
+ | Ok (contents, _) -> (
1783
+ match outputMode with
1784
+ | `Stdout -> Ok contents
1785
+ | `File -> Ok (Filename.basename path ^ ": File did not need migration"))
1786
end
0 commit comments