-
Notifications
You must be signed in to change notification settings - Fork 36
/
CLI.md.sh
executable file
·122 lines (100 loc) · 4.19 KB
/
CLI.md.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#!/usr/bin/env bash
export PYTHONPATH=.
CLI="python3 -m multiversx_sdk_cli.cli"
CLI_ALIAS="mxpy"
code() {
printf "\n\`\`\`\n" >> CLI.md
}
group() {
printf "## Group **$1**\n\n" >> CLI.md
code
printf "$ ${CLI_ALIAS} $2 --help\n" >> CLI.md
${CLI} ${2} --help >> CLI.md
code
}
command() {
printf "### $1\n\n" >> CLI.md
code
printf "$ ${CLI_ALIAS} $2 --help\n" >> CLI.md
${CLI} ${2} --help >> CLI.md
code
}
generate() {
echo -n > CLI.md
printf "# Command Line Interface\n\n" >> CLI.md
printf "## Overview\n\n" >> CLI.md
printf "**${CLI_ALIAS}** exposes a number of CLI **commands**, organized within **groups**.\n\n" >> CLI.md
code
printf "$ ${CLI_ALIAS} --help\n" >> CLI.md
${CLI} --help >> CLI.md
code
group "Contract" "contract"
command "Contract.New" "contract new"
command "Contract.Templates" "contract templates"
command "Contract.Build" "contract build"
command "Contract.Clean" "contract clean"
command "Contract.Deploy" "contract deploy"
command "Contract.Call" "contract call"
command "Contract.Upgrade" "contract upgrade"
command "Contract.Query" "contract query"
command "Contract.Report" "contract report"
group "Transactions" "tx"
command "Transactions.New" "tx new"
command "Transactions.Send" "tx send"
command "Transactions.Get" "tx get"
group "Validator" "validator"
command "Validator.Stake" "validator stake"
command "Validator.Unstake" "validator unstake"
command "Validator.Unjail" "validator unjail"
command "Validator.Unbond" "validator unbond"
command "Validator.ChangeRewardAddress" "validator change-reward-address"
command "Validator.Claim" "validator claim"
group "StakingProvider" "staking-provider"
command "StakingProvider.CreateNewDelegationContract" "staking-provider create-new-delegation-contract"
command "StakingProvider.GetContractAddress" "staking-provider get-contract-address"
command "StakingProvider.AddNodes" "staking-provider add-nodes"
command "StakingProvider.RemoveNodes" "staking-provider remove-nodes"
command "StakingProvider.StakeNodes" "staking-provider stake-nodes"
command "StakingProvider.UnbondNodes" "staking-provider unbond-nodes"
command "StakingProvider.UnstakeNodes" "staking-provider unstake-nodes"
command "StakingProvider.UnjailNodes" "staking-provider unjail-nodes"
command "StakingProvider.ChangeServiceFee" "staking-provider change-service-fee"
command "StakingProvider.ModifyDelegationCap" "staking-provider modify-delegation-cap"
command "StakingProvider.AutomaticActivation" "staking-provider automatic-activation"
command "StakingProvider.RedelegateCap" "staking-provider redelegate-cap"
command "StakingProvider.SetMetadata" "staking-provider set-metadata"
group "Account" "account"
command "Account.Get" "account get"
group "Wallet" "wallet"
command "Wallet.New" "wallet new"
command "Wallet.Convert" "wallet convert"
command "Wallet.Bech32" "wallet bech32"
command "Wallet.SignMessage" "wallet sign-message"
command "Wallet.VerifyMessage" "wallet verify-message"
group "Localnet" "localnet"
command "Localnet.Setup" "localnet setup"
command "Localnet.New" "localnet new"
command "Localnet.Prerequisites" "localnet prerequisites"
command "Localnet.Build" "localnet build"
command "Localnet.Config" "localnet config"
command "Localnet.Start" "localnet start"
command "Localnet.Clean" "localnet clean"
group "Dependencies" "deps"
command "Dependencies.Install" "deps install"
command "Dependencies.Check" "deps check"
group "Configuration" "config"
command "Configuration.Dump" "config dump"
command "Configuration.Get" "config get"
command "Configuration.Set" "config set"
command "Configuration.New" "config new"
command "Configuration.Switch" "config switch"
command "Configuration.List" "config list"
command "Configuration.Reset" "config reset"
group "Data" "data"
command "Data.Dump" "data parse"
command "Data.Store" "data store"
command "Data.Load" "data load"
group "Faucet" "faucet"
command "Faucet.Request" "faucet request"
}
generate