Skip to content

Commit 3827aa8

Browse files
authored
Merge pull request #532 from multiversx/refactoring-config-wallet
Refactoring config-wallet
2 parents 01a6ba3 + d875ddc commit 3827aa8

11 files changed

Lines changed: 465 additions & 513 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
strategy:
2121
matrix:
22-
os: [windows-2019]
22+
os: [windows-2022]
2323
python-version: [3.11]
2424

2525
steps:

CLI.md

Lines changed: 68 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ 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
3030
-v, --version show program's version number and exit
3131
--verbose
3232
--log-level {debug,info,warning,error}
33-
default: debug
33+
default: info
3434
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,148 @@ 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:
5825-
alias the alias of the wallet
5825+
alias the alias of the wallet
58265826
58275827
options:
5828-
-h, --help show this help message and exit
5829-
--template TEMPLATE an address config from which to create the new address
5828+
-h, --help show this help message and exit
5829+
--path PATH the absolute path to the wallet file
58305830
58315831
```
5832-
### Address.List
5832+
### ConfigWallet.List
58335833

58345834

58355835
```
5836-
$ mxpy address list --help
5837-
usage: mxpy address list [-h] ...
5836+
$ mxpy config-wallet list --help
5837+
usage: mxpy config-wallet list [-h] ...
58385838
5839-
List available addresses
5839+
List configured wallets
58405840
58415841
options:
58425842
-h, --help show this help message and exit
58435843
58445844
```
5845-
### Address.Dump
5845+
### ConfigWallet.Dump
58465846

58475847

58485848
```
5849-
$ mxpy address dump --help
5850-
usage: mxpy address dump [-h] ...
5849+
$ mxpy config-wallet dump --help
5850+
usage: mxpy config-wallet dump [-h] ...
58515851
5852-
Dumps the active address.
5852+
Dumps the active wallet.
58535853
58545854
options:
58555855
-h, --help show this help message and exit
58565856
58575857
```
5858-
### Address.Get
5858+
### ConfigWallet.Get
58595859

58605860

58615861
```
5862-
$ mxpy address get --help
5863-
usage: mxpy address get [-h] ...
5862+
$ mxpy config-wallet get --help
5863+
usage: mxpy config-wallet get [-h] ...
58645864
5865-
Gets a config value from the active address.
5865+
Gets a config value from the specified wallet.
58665866
58675867
positional arguments:
5868-
value the value to get from the active address (e.g. path)
5868+
value the value to get from the specified wallet (e.g. path)
58695869
58705870
options:
5871-
-h, --help show this help message and exit
5871+
-h, --help show this help message and exit
5872+
--alias ALIAS the alias of the wallet
58725873
58735874
```
5874-
### Address.Set
5875+
### ConfigWallet.Set
58755876

58765877

58775878
```
5878-
$ mxpy address set --help
5879-
usage: mxpy address set [-h] ...
5879+
$ mxpy config-wallet set --help
5880+
usage: mxpy config-wallet set [-h] ...
58805881
5881-
Sets a config value for the active address.
5882+
Sets a config value for the specified wallet.
58825883
58835884
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
5885+
key the key to set for the specified wallet (e.g. index)
5886+
value the value to set for the specified key
58865887
58875888
options:
5888-
-h, --help show this help message and exit
5889+
-h, --help show this help message and exit
5890+
--alias ALIAS the alias of the wallet
58895891
58905892
```
5891-
### Address.Set
5893+
### ConfigWallet.Switch
58925894

58935895

58945896
```
5895-
$ mxpy address delete --help
5896-
usage: mxpy address delete [-h] ...
5897+
$ mxpy config-wallet switch --help
5898+
usage: mxpy config-wallet switch [-h] ...
58975899
5898-
Deletes a config value from the active address.
5899-
5900-
positional arguments:
5901-
value the value to delete for the active address
5900+
Switch to a different wallet.
59025901
59035902
options:
5904-
-h, --help show this help message and exit
5903+
-h, --help show this help message and exit
5904+
--alias ALIAS the alias of the wallet
59055905
59065906
```
5907-
### Address.Switch
5907+
### ConfigWallet.Delete
59085908

59095909

59105910
```
5911-
$ mxpy address switch --help
5912-
usage: mxpy address switch [-h] ...
5911+
$ mxpy config-wallet delete --help
5912+
usage: mxpy config-wallet delete [-h] ...
59135913
5914-
Switch to a different address.
5914+
Deletes a config value from the specified wallet.
59155915
59165916
positional arguments:
5917-
alias the alias of the wallet
5917+
value the value to delete for the specified address
59185918
59195919
options:
5920-
-h, --help show this help message and exit
5920+
-h, --help show this help message and exit
5921+
--alias ALIAS the alias of the wallet
59215922
59225923
```
5923-
### Address.Remove
5924+
### ConfigWallet.Remove
59245925

59255926

59265927
```
5927-
$ mxpy address remove --help
5928-
usage: mxpy address remove [-h] ...
5928+
$ mxpy config-wallet remove --help
5929+
usage: mxpy config-wallet remove [-h] ...
59295930
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
5931+
Removes a wallet from the config using the alias. No default wallet will be set. Use `config-wallet switch` to set a new wallet.
59345932
59355933
options:
5936-
-h, --help show this help message and exit
5934+
-h, --help show this help message and exit
5935+
--alias ALIAS the alias of the wallet
59375936
59385937
```
5939-
### Address.Reset
5938+
### ConfigWallet.Reset
59405939

59415940

59425941
```
5943-
$ mxpy address reset --help
5944-
usage: mxpy address reset [-h] ...
5942+
$ mxpy config-wallet reset --help
5943+
usage: mxpy config-wallet reset [-h] ...
59455944
5946-
Deletes the config file. No default address will be set.
5945+
Deletes the config file. No default wallet will be set.
59475946
59485947
options:
59495948
-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.Switch" "config-wallet switch"
205+
command "ConfigWallet.Delete" "config-wallet delete"
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)