mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Minor formatting
This commit is contained in:
parent
64744014fd
commit
e1160a19a9
@ -91,7 +91,7 @@ arguments = info (version <*> helper <*> ((,) <$> optionsParser <*> argumentsPar
|
||||
|
||||
graphCommand = command "graph" (info graphArgumentsParser (progDesc "Compute import/call graph for an entry point"))
|
||||
graphArgumentsParser = runGraph
|
||||
<$> ( flag (SomeRenderer DOTGraphRenderer) (SomeRenderer DOTGraphRenderer) (long "dot" <> help "Output in DOT graph format (default)")
|
||||
<$> ( flag (SomeRenderer DOTGraphRenderer) (SomeRenderer DOTGraphRenderer) (long "dot" <> help "Output in DOT graph format (default)")
|
||||
<|> flag' (SomeRenderer JSONGraphRenderer) (long "json" <> help "Output JSON graph")
|
||||
)
|
||||
<*> argument filePathReader (metavar "ENTRY_FILE")
|
||||
|
@ -77,7 +77,6 @@ readBlobsFromHandle :: MonadIO m => Handle -> m [Blob.Blob]
|
||||
readBlobsFromHandle = fmap toBlobs . readFromHandle
|
||||
where toBlobs BlobParse{..} = fmap toBlob blobs
|
||||
|
||||
|
||||
readBlobFromPath :: MonadIO m => (FilePath, Maybe Language) -> m Blob.Blob
|
||||
readBlobFromPath file = do
|
||||
maybeFile <- uncurry readFile file
|
||||
|
Loading…
Reference in New Issue
Block a user