Commit 81660d0f authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FILE] missing.

parent ea24887b
Pipeline #121 canceled with stage
{-|
Module : Main.hs
Description : Gargantext Import Corpus
Copyright : (c) CNRS, 2017-Present
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
Import a corpus binary.
-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Strict #-}
module Main where
import Servant (ServantErr)
import Gargantext.Prelude
import Gargantext.Database.Flow (flowCorpus)
import Gargantext.Text.Parsers (FileFormat(CsvHalFormat))
import Gargantext.Database.Utils (connectGargandb, runCmdDevWith)
import System.Environment (getArgs)
-- main :: IO ()
main = do
[iniPath, name, corpusPath] <- getArgs
r <- runCmdDevWith iniPath $ flowCorpus CsvHalFormat corpusPath (cs name) :: Cmd ServantErr NodeId
pure ()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment