Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
ea24887b
Commit
ea24887b
authored
Jan 11, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP] BIN import corpus CLI.
parent
441edde5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
package.yaml
package.yaml
+16
-0
Utils.hs
src/Gargantext/Database/Utils.hs
+8
-3
No files found.
package.yaml
View file @
ea24887b
...
...
@@ -40,6 +40,7 @@ library:
-
Gargantext.Database.Schema.Node
-
Gargantext.Database.Cooc
-
Gargantext.Database.Tree
-
Gargantext.Database.Utils
-
Gargantext.Prelude
-
Gargantext.Text
-
Gargantext.Text.Context
...
...
@@ -48,6 +49,7 @@ library:
-
Gargantext.Text.Metrics
-
Gargantext.Text.Metrics.CharByChar
-
Gargantext.Text.Metrics.Count
-
Gargantext.Text.Parsers
-
Gargantext.Text.Parsers.CSV
-
Gargantext.Text.Parsers.Date
-
Gargantext.Text.Parsers.Wikimedia
...
...
@@ -218,6 +220,20 @@ executables:
-
unordered-containers
-
full-text-search
gargantext-import
:
main
:
Main.hs
source-dirs
:
bin/gargantext-import
ghc-options
:
-
-threaded
-
-rtsopts
-
-with-rtsopts=-N
-
-O2
-
-Wmissing-signatures
dependencies
:
-
gargantext
-
base
-
servant
tests
:
# garg-test:
# main: Main.hs
...
...
src/Gargantext/Database/Utils.hs
View file @
ea24887b
...
...
@@ -73,11 +73,16 @@ runCmdDev f = do
conn
<-
connectGargandb
"gargantext.ini"
either
(
fail
.
show
)
pure
=<<
runCmd
conn
f
runCmdDev
'
::
Cmd
ServantErr
a
->
IO
a
runCmdDev
'
f
=
do
conn
<-
connectGargandb
"gargantext.ini"
runCmdDev
With
::
FilePath
->
Cmd
ServantErr
a
->
IO
a
runCmdDev
With
fp
f
=
do
conn
<-
connectGargandb
fp
either
(
fail
.
show
)
pure
=<<
runCmd
conn
f
runCmdDevWith'
::
Cmd
ServantErr
a
->
IO
a
runCmdDevWith'
f
=
runCmdDevWith
"gargantext.ini"
f
-- Use only for dev
runCmdDevNoErr
::
Cmd
()
a
->
IO
a
runCmdDevNoErr
=
runCmdDev
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment