1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00

Add runMode to SemanticDiff

This commit is contained in:
Rick Winfrey 2016-11-02 20:13:22 -05:00
parent eb9d00d9e2
commit 86b9e06417

View File

@ -29,7 +29,12 @@ import Development.GitRev
main :: IO ()
main = do
args@Arguments{..} <- programArguments =<< execParser argumentsParser
case diffMode of
case runMode of
Diff -> runDiff args
Parse -> Parse.run args
runDiff :: Arguments -> IO ()
runDiff args@Arguments{..} = case diffMode of
PathDiff paths -> diffPaths args paths
CommitDiff -> diffCommits args