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
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
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
d8e7aa62
Verified
Commit
d8e7aa62
authored
Nov 29, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[refactor] rename 'gargantext-cli' binary to 'gargantext'
parent
83e72f18
Pipeline
#7056
failed with stages
in 12 minutes and 51 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
README.md
README.md
+5
-5
cli
bin/cli
+3
-3
Main.hs
bin/gargantext-cli/Main.hs
+1
-1
start-worker
bin/scripts/start-worker
+1
-1
gargantext.cabal
gargantext.cabal
+1
-1
API.hs
src/Gargantext/API.hs
+1
-1
No files found.
README.md
View file @
d8e7aa62
...
...
@@ -115,7 +115,7 @@ From inside the `haskell-gargantext/` directory, run
### Multi-User with Graphical User Interface (Server Mode)
```
shell
$
~/.local/bin/stack
--docker
exec
gargantext
-cli
--
server start
-m
Prod
$
~/.local/bin/stack
--docker
exec
gargantext
--
server start
-m
Prod
```
Then you can log in with
`user1`
/
`1resu`
...
...
@@ -126,7 +126,7 @@ Then you can log in with `user1` / `1resu`
#### Simple cooccurrences computation and indexation from a list of Ngrams
```
shell
$
stack
--docker
exec
gargantext
-cli
--
CorpusFromGarg.csv ListFromGarg.csv Ouput.json
$
stack
--docker
exec
gargantext
--
CorpusFromGarg.csv ListFromGarg.csv Ouput.json
```
### Analyzing the ngrams table repo
...
...
@@ -380,7 +380,7 @@ The flags have the following meaning:
In order for some tests to run (like the phylo ones) is
**required**
to install the
`gargantext-cli`
via:
```
hs
cabal
v2
-
install
gargantext
:
exe
:
gargantext
-
cli
cabal
v2
-
install
gargantext
:
exe
:
gargantext
```
### Modifying a golden test to accept a new (expected) output
...
...
@@ -407,12 +407,12 @@ psql -c "ALTER DATABASE \"gargantext_pgmq\" OWNER TO \"gargantua\""
3.
Finally launch the worker
```
bash
nix-shell
--run
"cabal v2-run gargantext
-cli
-- worker run --name default"
nix-shell
--run
"cabal v2-run gargantext -- worker run --name default"
```
Or launch all worker definitions at once:
```
bash
nix-shell
--run
"cabal v2-run gargantext
-cli
-- worker run-all"
nix-shell
--run
"cabal v2-run gargantext -- worker run-all"
```
## Configuration
...
...
bin/cli
View file @
d8e7aa62
...
...
@@ -4,12 +4,12 @@
# A couple hygienic options
set -e -u
# The following command will run `cabal run gargantext
-cli
--` followed by the
# The following command will run `cabal run gargantext --` followed by the
# options provided by the user, from inside a Nix shell. For instance,
# if the user types
# $ ./bin/cli someCommand "some string argument"
# the following will be run from inside a Nix shell:
# $ cabal run gargantext
-cli
-- someCommand "some string argument"
# $ cabal run gargantext -- someCommand "some string argument"
# It's a little convoluted because we want to keep spaces that were enclosed in
# quotes or escaped by the user.
nix-shell --run "$(printf "%q " cabal run gargantext
-cli
-- "$@")"
nix-shell --run "$(printf "%q " cabal run gargantext -- "$@")"
bin/gargantext-cli/Main.hs
View file @
d8e7aa62
...
...
@@ -77,7 +77,7 @@ main = runCLI =<< execParser opts
opts
=
info
(
helper
<*>
allOptions
)
(
fullDesc
<>
progDesc
"CLI for the gargantext-server. Type --help for all the commands."
<>
header
"gargantext
-cli
tools"
)
<>
header
"gargantext tools"
)
allOptions
::
Parser
CLI
allOptions
=
subparser
(
...
...
bin/scripts/start-worker
View file @
d8e7aa62
...
...
@@ -8,4 +8,4 @@
# Then launch the service
nix-shell
--run
"cabal v2-run gargantext
-cli
-- worker run --name default"
nix-shell
--run
"cabal v2-run gargantext -- worker run --name default"
gargantext.cabal
View file @
d8e7aa62
...
...
@@ -633,7 +633,7 @@ library
, zip ^>= 2.0.0
, zip-archive ^>= 0.4.3
executable gargantext
-cli
executable gargantext
import:
defaults
, optimized
...
...
src/Gargantext/API.hs
View file @
d8e7aa62
...
...
@@ -101,7 +101,7 @@ startGargantext mode port sf@(SettingsFile settingsFile) = withLoggerHoisted mod
case
r
of
Right
True
->
pure
()
Right
False
->
panicTrace
$
"You must run 'gargantext
-cli
init "
<>
pack
settingsFile
<>
"You must run 'gargantext init "
<>
pack
settingsFile
<>
"' before running gargantext-server (only the first time)."
Left
err
->
panicTrace
$
"Unexpected exception:"
<>
show
err
oneHour
=
Clock
.
fromNanoSecs
3600
_000_000_000
...
...
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