Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli-v2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Rust
Ğcli-v2s
Commits
f528c49d
Commit
f528c49d
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
add command examples
parent
090980ca
No related branches found
No related tags found
1 merge request
!5
add features and refac data
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
doc/example.md
+44
-0
44 additions, 0 deletions
doc/example.md
src/main.rs
+1
-1
1 addition, 1 deletion
src/main.rs
with
47 additions
and
1 deletion
README.md
+
2
−
0
View file @
f528c49d
...
@@ -20,6 +20,8 @@ List certifications and session keys that will expire within one month:
...
@@ -20,6 +20,8 @@ List certifications and session keys that will expire within one month:
cargo run -- --url wss://gdev.p2p.legal:443/ws expire --blocks 432000
cargo run -- --url wss://gdev.p2p.legal:443/ws expire --blocks 432000
For more examples see
[
in the example file
](
./doc/example.md
)
.
#### Log level
#### Log level
You can adjust the log level:
You can adjust the log level:
...
...
This diff is collapsed.
Click to expand it.
doc/example.md
0 → 100644
+
44
−
0
View file @
f528c49d
# Examples of gcli commands for copy-paste
Useful when developing: replace
`gcli`
by
`cargo run --`
to build in debug mode and launch gcli.
## Mnemonics
Used in duniter-indexer genesis config:
`pipe paddle ketchup filter life ice feel embody glide quantum ride usage`
with derivations:
-
`//2`
→
`test1`
-
`//4`
→
`test2`
-
`//6`
→
`test3`
Used in substrate for Alice, Bob and Co:
`bottom drive obey lake curtain smoke basket hold race lonely fit walk`
with derivations:
-
`//Alice`
-
`//Bob`
-
`//Charlie`
-
...
## Commands
```
sh
# get balance of test1 account
gcli
--address
5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa get-balance
# get information about test1 identity (needs indexer)
gcli identity
--username
test1
# show address of given secret
gcli
--secret
"pipe paddle ketchup filter life ice feel embody glide quantum ride usage"
//2 show-address
```
## Indexer commands
These commands uniquely relate with indexer
```
sh
# show latest indexer indexed block
gcli indexer latest-block
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main.rs
+
1
−
1
View file @
f528c49d
...
@@ -266,7 +266,7 @@ async fn main() -> Result<(), GcliError> {
...
@@ -266,7 +266,7 @@ async fn main() -> Result<(), GcliError> {
match
args
.subcommand
{
match
args
.subcommand
{
Subcommand
::
GetBalance
=>
{
Subcommand
::
GetBalance
=>
{
data
=
data
data
=
data
.build_
keypair
()
.build_
address
()
.build_client
()
.build_client
()
.await
.await
.fetch_system_properties
()
.fetch_system_properties
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment