Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
195
Issues
195
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
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
gargantext
haskell-gargantext
Commits
a81ea049
Verified
Commit
a81ea049
authored
Dec 30, 2024
by
Przemyslaw Kaminski
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLI] fix limit removal
It wasn't used anyways.
parent
d1dfbf79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
Import.hs
bin/gargantext-cli/CLI/Import.hs
+3
-4
Types.hs
bin/gargantext-cli/CLI/Types.hs
+0
-2
No files found.
bin/gargantext-cli/CLI/Import.hs
View file @
a81ea049
...
@@ -26,7 +26,6 @@ import Gargantext.API.Node () -- instances
...
@@ -26,7 +26,6 @@ import Gargantext.API.Node () -- instances
import
Gargantext.Core
(
Lang
(
..
))
import
Gargantext.Core
(
Lang
(
..
))
import
Gargantext.Core.Text.Corpus.Parsers
(
FileFormat
(
..
),
FileType
(
..
))
import
Gargantext.Core.Text.Corpus.Parsers
(
FileFormat
(
..
),
FileType
(
..
))
import
Gargantext.Core.Types.Individu
(
User
(
..
))
import
Gargantext.Core.Types.Individu
(
User
(
..
))
import
Gargantext.Core.Types.Query
import
Gargantext.Database.Action.Flow
(
flowCorpusFile
,
flowAnnuaire
,
TermType
(
..
))
import
Gargantext.Database.Action.Flow
(
flowCorpusFile
,
flowAnnuaire
,
TermType
(
..
))
import
Gargantext.Database.Action.Flow.Types
(
FlowCmdM
)
import
Gargantext.Database.Action.Flow.Types
(
FlowCmdM
)
import
Gargantext.Database.Admin.Types.Node
(
CorpusId
)
import
Gargantext.Database.Admin.Types.Node
(
CorpusId
)
...
@@ -39,7 +38,7 @@ import qualified Data.Text as T
...
@@ -39,7 +38,7 @@ import qualified Data.Text as T
importCLI
::
ImportArgs
->
IO
()
importCLI
::
ImportArgs
->
IO
()
importCLI
(
ImportArgs
fun
user
name
settingsPath
limit
corpusPath
)
=
do
importCLI
(
ImportArgs
fun
user
name
settingsPath
corpusPath
)
=
do
let
let
tt
=
Multi
EN
tt
=
Multi
EN
format
=
TsvGargV3
format
=
TsvGargV3
...
@@ -48,7 +47,7 @@ importCLI (ImportArgs fun user name settingsPath limit corpusPath) = do
...
@@ -48,7 +47,7 @@ importCLI (ImportArgs fun user name settingsPath limit corpusPath) = do
corpus
=
flowCorpusFile
mkCorpusUser
tt
format
Plain
corpusPath
Nothing
DevJobHandle
corpus
=
flowCorpusFile
mkCorpusUser
tt
format
Plain
corpusPath
Nothing
DevJobHandle
corpusTsvHal
::
forall
m
.
(
FlowCmdM
DevEnv
BackendInternalError
m
,
MonadJobStatus
m
,
JobHandle
m
~
DevJobHandle
)
=>
m
CorpusId
corpusTsvHal
::
forall
m
.
(
FlowCmdM
DevEnv
BackendInternalError
m
,
MonadJobStatus
m
,
JobHandle
m
~
DevJobHandle
)
=>
m
CorpusId
corpusTsvHal
=
flowCorpusFile
mkCorpusUser
limit
tt
TsvHal
Plain
corpusPath
Nothing
DevJobHandle
corpusTsvHal
=
flowCorpusFile
mkCorpusUser
tt
TsvHal
Plain
corpusPath
Nothing
DevJobHandle
annuaire
::
forall
m
.
(
FlowCmdM
DevEnv
BackendInternalError
m
,
MonadJobStatus
m
,
JobHandle
m
~
DevJobHandle
)
=>
m
CorpusId
annuaire
::
forall
m
.
(
FlowCmdM
DevEnv
BackendInternalError
m
,
MonadJobStatus
m
,
JobHandle
m
~
DevJobHandle
)
=>
m
CorpusId
annuaire
=
flowAnnuaire
(
MkCorpusUserNormalCorpusName
(
UserName
$
cs
user
)
"Annuaire"
)
(
Multi
EN
)
corpusPath
DevJobHandle
annuaire
=
flowAnnuaire
(
MkCorpusUserNormalCorpusName
(
UserName
$
cs
user
)
"Annuaire"
)
(
Multi
EN
)
corpusPath
DevJobHandle
...
@@ -76,7 +75,7 @@ import_p = fmap CCMD_import $ ImportArgs
...
@@ -76,7 +75,7 @@ import_p = fmap CCMD_import $ ImportArgs
<*>
(
option
str
(
long
"user"
)
)
<*>
(
option
str
(
long
"user"
)
)
<*>
(
option
str
(
long
"name"
)
)
<*>
(
option
str
(
long
"name"
)
)
<*>
settings_p
<*>
settings_p
<*>
(
fmap
Limit
(
option
auto
(
long
"limit"
<>
metavar
"INT"
<>
help
"The limit for the query"
)
))
--
<*> (fmap Limit ( option auto ( long "limit" <> metavar "INT" <> help "The limit for the query") ))
<*>
(
option
str
(
long
"corpus-path"
<>
help
"Path to corpus file"
)
)
<*>
(
option
str
(
long
"corpus-path"
<>
help
"Path to corpus file"
)
)
function_p
::
String
->
Either
String
ImportFunction
function_p
::
String
->
Either
String
ImportFunction
...
...
bin/gargantext-cli/CLI/Types.hs
View file @
a81ea049
...
@@ -19,7 +19,6 @@ import Data.Text (Text)
...
@@ -19,7 +19,6 @@ import Data.Text (Text)
import
Gargantext.API.Admin.EnvTypes
(
Mode
)
import
Gargantext.API.Admin.EnvTypes
(
Mode
)
import
Gargantext.Core.Config.Types
(
SettingsFile
(
..
))
import
Gargantext.Core.Config.Types
(
SettingsFile
(
..
))
import
Gargantext.Core.Types
(
NodeId
)
import
Gargantext.Core.Types
(
NodeId
)
import
Gargantext.Core.Types.Query
import
Prelude
import
Prelude
newtype
CorpusFile
=
CorpusFile
{
_CorpusFile
::
FilePath
}
newtype
CorpusFile
=
CorpusFile
{
_CorpusFile
::
FilePath
}
...
@@ -55,7 +54,6 @@ data ImportArgs = ImportArgs
...
@@ -55,7 +54,6 @@ data ImportArgs = ImportArgs
,
imp_user
::
!
Text
,
imp_user
::
!
Text
,
imp_name
::
!
Text
,
imp_name
::
!
Text
,
imp_settings
::
!
SettingsFile
,
imp_settings
::
!
SettingsFile
,
imp_limit
::
!
Limit
,
imp_corpus_path
::
!
FilePath
,
imp_corpus_path
::
!
FilePath
}
deriving
(
Show
,
Eq
)
}
deriving
(
Show
,
Eq
)
...
...
Przemyslaw Kaminski
@cgenie
mentioned in commit
03b33383
·
Jan 30, 2025
mentioned in commit
03b33383
mentioned in commit 03b33383dd67c1821a4edb4628923cf7bd039d90
Toggle commit list
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