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:
parent
eb9d00d9e2
commit
86b9e06417
@ -29,7 +29,12 @@ import Development.GitRev
|
|||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = do
|
main = do
|
||||||
args@Arguments{..} <- programArguments =<< execParser argumentsParser
|
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
|
PathDiff paths -> diffPaths args paths
|
||||||
CommitDiff -> diffCommits args
|
CommitDiff -> diffCommits args
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user