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
5392065c
Commit
5392065c
authored
Oct 07, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADM] binaries to ease new account creations
parent
ab4b72c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
1 deletion
+54
-1
Main.hs
bin/gargantext-admin/Main.hs
+33
-0
Main.hs
bin/gargantext-upgrade/Main.hs
+0
-1
haddock
bin/haddock
+7
-0
package.yaml
package.yaml
+14
-0
No files found.
bin/gargantext-admin/Main.hs
0 → 100644
View file @
5392065c
{-|
Module : Main.hs
Description : Gargantext Admin tools
Copyright : (c) CNRS, 2017-Present
License : AGPL + CECILL v3
Maintainer : team@gargantext.org
Stability : experimental
Portability : POSIX
-}
{-# LANGUAGE Strict #-}
module
Main
where
import
Gargantext.API.Admin.Settings
(
withDevEnv
,
runCmdDev
)
import
Gargantext.API.Prelude
(
GargError
)
import
Gargantext.Database.Action.User.New
(
newUsers
)
import
Gargantext.Database.Prelude
(
Cmd
''
)
import
Gargantext.Prelude
import
System.Environment
(
getArgs
)
import
Gargantext.API.Admin.Types
(
DevEnv
)
main
::
IO
()
main
=
do
(
iniPath
:
mails
)
<-
getArgs
withDevEnv
iniPath
$
\
env
->
do
x
<-
runCmdDev
env
((
newUsers
$
map
cs
mails
)
::
Cmd''
DevEnv
GargError
Int64
)
putStrLn
$
show
x
pure
()
bin/gargantext-upgrade/Main.hs
View file @
5392065c
...
@@ -15,7 +15,6 @@ Import a corpus binary.
...
@@ -15,7 +15,6 @@ Import a corpus binary.
module
Main
where
module
Main
where
import
Data.Proxy
import
Gargantext.API.Admin.Settings
(
withDevEnv
,
runCmdDev
)
import
Gargantext.API.Admin.Settings
(
withDevEnv
,
runCmdDev
)
import
Gargantext.API.Prelude
(
GargError
)
import
Gargantext.API.Prelude
(
GargError
)
import
Gargantext.API.Node
()
-- instances only
import
Gargantext.API.Node
()
-- instances only
...
...
bin/haddock
0 → 100755
View file @
5392065c
#!/bin/bash
#stack haddock --no-haddock-deps --verbose
# if fails, take the command and remove the --hoogle option to get a better message error
/home/alexandre/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.0.1.0_ghc-8.8.4
--builddir
=
.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.0.1.0 haddock
--html
--hoogle
--html-location
=
../
$pkg
-
$version
/
--haddock-option
=
--hyperlinked-source
--haddock-option
=
--quickjump
package.yaml
View file @
5392065c
...
@@ -53,6 +53,7 @@ library:
...
@@ -53,6 +53,7 @@ library:
-
Gargantext.Core.Types.Main
-
Gargantext.Core.Types.Main
-
Gargantext.Core.Utils.Prefix
-
Gargantext.Core.Utils.Prefix
-
Gargantext.Database.Action.Flow
-
Gargantext.Database.Action.Flow
-
Gargantext.Database.Action.User.New
-
Gargantext.Database.Query.Table.User
-
Gargantext.Database.Query.Table.User
-
Gargantext.Database.Query.Table.Node
-
Gargantext.Database.Query.Table.Node
-
Gargantext.Database.Query.Table.Node.UpdateOpaleye
-
Gargantext.Database.Query.Table.Node.UpdateOpaleye
...
@@ -397,6 +398,19 @@ executables:
...
@@ -397,6 +398,19 @@ executables:
-
gargantext
-
gargantext
-
base
-
base
gargantext-admin
:
main
:
Main.hs
source-dirs
:
bin/gargantext-admin
ghc-options
:
-
-threaded
-
-rtsopts
-
-with-rtsopts=-N
-
-O2
-
-Wmissing-signatures
dependencies
:
-
gargantext
-
base
gargantext-cbor2json
:
gargantext-cbor2json
:
main
:
Main.hs
main
:
Main.hs
source-dirs
:
bin/gargantext-cbor2json
source-dirs
:
bin/gargantext-cbor2json
...
...
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