3 Description : Gargantext Admin tools
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
14 {-# LANGUAGE Strict #-}
18 import Gargantext.API.Dev (withDevEnv, runCmdDev)
19 import Gargantext.API.Prelude (GargError)
20 import Gargantext.Database.Action.User.New (newUsers)
21 import Gargantext.Database.Prelude (Cmd'')
22 import Gargantext.Prelude
23 import System.Environment (getArgs)
24 import Gargantext.API.Admin.EnvTypes (DevEnv)
28 (iniPath:mails) <- getArgs
30 withDevEnv iniPath $ \env -> do
31 x <- runCmdDev env ((newUsers $ map cs mails) :: Cmd'' DevEnv GargError Int64)