Skip to content

Commit 2888f7a

Browse files
committed
refactoring config-wallet
1 parent 01a6ba3 commit 2888f7a

9 files changed

Lines changed: 367 additions & 394 deletions

File tree

CLI.md

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ See:
2323
2424
2525
COMMAND GROUPS:
26-
{address,contract,tx,validator,ledger,wallet,validator-wallet,deps,config,localnet,data,staking-provider,dns,faucet,multisig,governance,env,get}
26+
{config-wallet,contract,tx,validator,ledger,wallet,validator-wallet,deps,config,localnet,data,staking-provider,dns,faucet,multisig,governance,env,get}
2727
2828
TOP-LEVEL OPTIONS:
2929
-h, --help show this help message and exit
@@ -35,7 +35,7 @@ TOP-LEVEL OPTIONS:
3535
----------------------
3636
COMMAND GROUPS summary
3737
----------------------
38-
address Configure MultiversX CLI to use a default wallet.
38+
config-wallet Configure MultiversX CLI to use a default wallet.
3939
contract Deploy, upgrade and interact with Smart Contracts
4040
tx Create and broadcast Transactions
4141
validator Stake, UnStake, UnBond, Unjail and other actions useful for Validators
@@ -5783,12 +5783,12 @@ options:
57835783
-h, --help show this help message and exit
57845784
57855785
```
5786-
## Group **Address**
5786+
## Group **ConfigWallet**
57875787

57885788

57895789
```
5790-
$ mxpy address --help
5791-
usage: mxpy address COMMAND [-h] ...
5790+
$ mxpy config-wallet --help
5791+
usage: mxpy config-wallet COMMAND [-h] ...
57925792
57935793
Configure MultiversX CLI to use a default wallet.
57945794
@@ -5801,149 +5801,149 @@ OPTIONS:
58015801
----------------
58025802
COMMANDS summary
58035803
----------------
5804-
new Creates a new address config and sets it as the active address.
5805-
list List available addresses
5806-
dump Dumps the active address.
5807-
get Gets a config value from the active address.
5808-
set Sets a config value for the active address.
5809-
delete Deletes a config value from the active address.
5810-
switch Switch to a different address.
5811-
remove Deletes an address using the alias. No default address will be set. Use `address switch` to set a new address.
5812-
reset Deletes the config file. No default address will be set.
5804+
new Creates a new wallet config and sets it as the active wallet.
5805+
list List configured wallets
5806+
dump Dumps the active wallet.
5807+
get Gets a config value from the specified wallet.
5808+
set Sets a config value for the specified wallet.
5809+
delete Deletes a config value from the specified wallet.
5810+
switch Switch to a different wallet.
5811+
remove Removes a wallet from the config using the alias. No default wallet will be set. Use `config-wallet switch` to set a new wallet.
5812+
reset Deletes the config file. No default wallet will be set.
58135813
58145814
```
5815-
### Address.New
5815+
### ConfigWallet.New
58165816

58175817

58185818
```
5819-
$ mxpy address new --help
5820-
usage: mxpy address new [-h] ...
5819+
$ mxpy config-wallet new --help
5820+
usage: mxpy config-wallet new [-h] ...
58215821
5822-
Creates a new address config and sets it as the active address.
5822+
Creates a new wallet config and sets it as the active wallet.
58235823
58245824
positional arguments:
58255825
alias the alias of the wallet
58265826
58275827
options:
58285828
-h, --help show this help message and exit
5829-
--template TEMPLATE an address config from which to create the new address
5829+
--path PATH the absolute path to the wallet file
5830+
--template TEMPLATE a wallet config from which to create the new config
58305831
58315832
```
5832-
### Address.List
5833+
### ConfigWallet.List
58335834

58345835

58355836
```
5836-
$ mxpy address list --help
5837-
usage: mxpy address list [-h] ...
5837+
$ mxpy config-wallet list --help
5838+
usage: mxpy config-wallet list [-h] ...
58385839
5839-
List available addresses
5840+
List configured wallets
58405841
58415842
options:
58425843
-h, --help show this help message and exit
58435844
58445845
```
5845-
### Address.Dump
5846+
### ConfigWallet.Dump
58465847

58475848

58485849
```
5849-
$ mxpy address dump --help
5850-
usage: mxpy address dump [-h] ...
5850+
$ mxpy config-wallet dump --help
5851+
usage: mxpy config-wallet dump [-h] ...
58515852
5852-
Dumps the active address.
5853+
Dumps the active wallet.
58535854
58545855
options:
58555856
-h, --help show this help message and exit
58565857
58575858
```
5858-
### Address.Get
5859+
### ConfigWallet.Get
58595860

58605861

58615862
```
5862-
$ mxpy address get --help
5863-
usage: mxpy address get [-h] ...
5863+
$ mxpy config-wallet get --help
5864+
usage: mxpy config-wallet get [-h] ...
58645865
5865-
Gets a config value from the active address.
5866+
Gets a config value from the specified wallet.
58665867
58675868
positional arguments:
5868-
value the value to get from the active address (e.g. path)
5869+
value the value to get from the specified wallet (e.g. path)
58695870
58705871
options:
5871-
-h, --help show this help message and exit
5872+
-h, --help show this help message and exit
5873+
--alias ALIAS the alias of the wallet
58725874
58735875
```
5874-
### Address.Set
5876+
### ConfigWallet.Set
58755877

58765878

58775879
```
5878-
$ mxpy address set --help
5879-
usage: mxpy address set [-h] ...
5880+
$ mxpy config-wallet set --help
5881+
usage: mxpy config-wallet set [-h] ...
58805882
5881-
Sets a config value for the active address.
5883+
Sets a config value for the specified wallet.
58825884
58835885
positional arguments:
5884-
key the key to set for the active address (e.g. index)
5885-
value the value to set for the specified key
5886+
key the key to set for the specified wallet (e.g. index)
5887+
value the value to set for the specified key
58865888
58875889
options:
5888-
-h, --help show this help message and exit
5890+
-h, --help show this help message and exit
5891+
--alias ALIAS the alias of the wallet
58895892
58905893
```
5891-
### Address.Set
5894+
### ConfigWallet.Set
58925895

58935896

58945897
```
5895-
$ mxpy address delete --help
5896-
usage: mxpy address delete [-h] ...
5898+
$ mxpy config-wallet delete --help
5899+
usage: mxpy config-wallet delete [-h] ...
58975900
5898-
Deletes a config value from the active address.
5901+
Deletes a config value from the specified wallet.
58995902
59005903
positional arguments:
5901-
value the value to delete for the active address
5904+
value the value to delete for the specified address
59025905
59035906
options:
5904-
-h, --help show this help message and exit
5907+
-h, --help show this help message and exit
5908+
--alias ALIAS the alias of the wallet
59055909
59065910
```
5907-
### Address.Switch
5911+
### ConfigWallet.Switch
59085912

59095913

59105914
```
5911-
$ mxpy address switch --help
5912-
usage: mxpy address switch [-h] ...
5913-
5914-
Switch to a different address.
5915+
$ mxpy config-wallet switch --help
5916+
usage: mxpy config-wallet switch [-h] ...
59155917
5916-
positional arguments:
5917-
alias the alias of the wallet
5918+
Switch to a different wallet.
59185919
59195920
options:
5920-
-h, --help show this help message and exit
5921+
-h, --help show this help message and exit
5922+
--alias ALIAS the alias of the wallet
59215923
59225924
```
5923-
### Address.Remove
5925+
### ConfigWallet.Remove
59245926

59255927

59265928
```
5927-
$ mxpy address remove --help
5928-
usage: mxpy address remove [-h] ...
5929+
$ mxpy config-wallet remove --help
5930+
usage: mxpy config-wallet remove [-h] ...
59295931
5930-
Deletes an address using the alias. No default address will be set. Use `address switch` to set a new address.
5931-
5932-
positional arguments:
5933-
alias the alias of the wallet
5932+
Removes a wallet from the config using the alias. No default wallet will be set. Use `config-wallet switch` to set a new wallet.
59345933
59355934
options:
5936-
-h, --help show this help message and exit
5935+
-h, --help show this help message and exit
5936+
--alias ALIAS the alias of the wallet
59375937
59385938
```
5939-
### Address.Reset
5939+
### ConfigWallet.Reset
59405940

59415941

59425942
```
5943-
$ mxpy address reset --help
5943+
$ mxpy config-wallet reset --help
59445944
usage: mxpy address reset [-h] ...
59455945
5946-
Deletes the config file. No default address will be set.
5946+
Deletes the config file. No default wallet will be set.
59475947
59485948
options:
59495949
-h, --help show this help message and exit

CLI.md.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,16 +195,16 @@ generate() {
195195
command "Environment.Remove" "env remove"
196196
command "Environment.Reset" "env reset"
197197

198-
group "Address" "address"
199-
command "Address.New" "address new"
200-
command "Address.List" "address list"
201-
command "Address.Dump" "address dump"
202-
command "Address.Get" "address get"
203-
command "Address.Set" "address set"
204-
command "Address.Set" "address delete"
205-
command "Address.Switch" "address switch"
206-
command "Address.Remove" "address remove"
207-
command "Address.Reset" "address reset"
198+
group "ConfigWallet" "config-wallet"
199+
command "ConfigWallet.New" "config-wallet new"
200+
command "ConfigWallet.List" "config-wallet list"
201+
command "ConfigWallet.Dump" "config-wallet dump"
202+
command "ConfigWallet.Get" "config-wallet get"
203+
command "ConfigWallet.Set" "config-wallet set"
204+
command "ConfigWallet.Set" "config-wallet delete"
205+
command "ConfigWallet.Switch" "config-wallet switch"
206+
command "ConfigWallet.Remove" "config-wallet remove"
207+
command "ConfigWallet.Reset" "config-wallet reset"
208208

209209
group "Get" "get"
210210
command "Get.Account" "get account"

0 commit comments

Comments
 (0)