Skip to content
Snippets Groups Projects
Commit 1123d023 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

document address overwrite behavior

parent 4abc16e7
No related branches found
No related tags found
1 merge request!11refac call submission and event watch
This commit is part of merge request !11. Comments created here will be created in the context of that merge request.
doc/config.md 0 → 100644
# Ğcli config
Some Ğcli commands require to have an address configured (for example to get account balance), some require to have a secret configured (to sign extrinsics).
Ğcli allows to save what you want in a config file and to overwrite parts in command line arguments. Example:
```sh
# save Alice secret to config file
cargo run -- -S predefined -s Alice config save
# show config
cargo run -- config show
# [stdout]
# Ğcli config
# duniter endpoint ws://localhost:9944
# indexer endpoint http://localhost:8080/v1/graphql
# address 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY (secret defined)
# use different address in command line
cargo run -- --address 5Fxune7f71ZbpP2FoY3mhYcmM596Erhv1gRue4nsPwkxMR4n config show
# [stdout]
# Ğcli config
# duniter endpoint ws://localhost:9944
# indexer endpoint http://localhost:8080/v1/graphql
# address 5Fxune7f71ZbpP2FoY3mhYcmM596Erhv1gRue4nsPwkxMR4n (no secret)
```
You can see that if a secret is defined, the associated address is used, but if an other address is given, the secret is silenced.
\ No newline at end of file
......@@ -20,7 +20,7 @@ gcli -S predefined -s Alice config save
gcli --network local -S predefined -s test1 config save
```
In the following, we assume this last command was run.
In the following, we assume this last command was run. More about the config in [config.md](./config.md).
## Commands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment