1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Some more tweaks

This commit is contained in:
Patrick Thomson 2020-01-24 16:02:19 -05:00
parent 2620c050a7
commit 801edb8db0
2 changed files with 4 additions and 4 deletions

View File

@ -153,8 +153,8 @@ graphCommand = command "graph" (info graphArgumentsParser (progDesc "Compute a g
<$> ( Just <$> some (strArgument (metavar "FILES..."))
<|> flag' Nothing (long "stdin" <> help "Read a list of newline-separated paths to analyze from stdin."))
makeReadProjectFromPathsTask maybePaths = do
ePaths <- maybeM (liftIO (many getLine)) maybePaths
let paths = rights (Path.parse <$> ePaths)
strPaths <- maybeM (liftIO (many getLine)) maybePaths
let paths = rights (Path.parse <$> strPaths)
blobs <- traverse readBlobFromPath paths
case paths of
(x:_) -> pure $! Project (Path.toString (Path.takeDirectory x)) blobs (Language.forPath x) mempty