[refactor] rename 'gargantext-cli' binary to 'gargantext'

parent 83e72f18
Pipeline #7056 failed with stages
in 12 minutes and 51 seconds
......@@ -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
......
......@@ -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 -- "$@")"
......@@ -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 (
......
......@@ -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"
......@@ -633,7 +633,7 @@ library
, zip ^>= 2.0.0
, zip-archive ^>= 0.4.3
executable gargantext-cli
executable gargantext
import:
defaults
, optimized
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment