Skip to content

Commit fd07301

Browse files
authored
fix: signer flags (#758)
* fix: signer * chore: make gen
1 parent 8d7e0ac commit fd07301

File tree

5 files changed

+97
-45
lines changed

5 files changed

+97
-45
lines changed

cmd/signer/signer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ func init() {
845845
SignerCmd.AddCommand(ListCmd)
846846
SignerCmd.AddCommand(ImportCmd)
847847

848-
f := SignerCmd.Flags()
848+
f := SignerCmd.PersistentFlags()
849849
f.StringVar(&inputSignerOpts.keystore, "keystore", "", "use keystore in given folder or file")
850850
f.StringVar(&inputSignerOpts.privateKey, "private-key", "", "use provided hex encoded private key")
851851
f.StringVar(&inputSignerOpts.kms, "kms", "", "AWS or GCP if key is stored in cloud")

doc/polycli_signer_create.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,30 @@ polycli signer create --kms GCP --gcp-project-id prj-polygonlabs-devtools-dev --
4747
The command also inherits flags from parent commands.
4848

4949
```bash
50-
--config string config file (default is $HOME/.polygon-cli.yaml)
51-
--pretty-logs output logs in pretty format instead of JSON (default true)
52-
-v, --verbosity string log level (string or int):
53-
0 - silent
54-
100 - panic
55-
200 - fatal
56-
300 - error
57-
400 - warn
58-
500 - info (default)
59-
600 - debug
60-
700 - trace (default "info")
50+
--chain-id uint chain ID for transactions
51+
--config string config file (default is $HOME/.polygon-cli.yaml)
52+
--data-file string file name holding data to be signed
53+
--gcp-import-job-id string GCP import job ID to use when importing key
54+
--gcp-key-version int GCP crypto key version to use (default 1)
55+
--gcp-keyring-id string GCP keyring ID to be used (default "polycli-keyring")
56+
--gcp-location string GCP region to use (default "europe-west2")
57+
--gcp-project-id string GCP project ID to use
58+
--key-id string ID of key to be used for signing
59+
--keystore string use keystore in given folder or file
60+
--kms string AWS or GCP if key is stored in cloud
61+
--pretty-logs output logs in pretty format instead of JSON (default true)
62+
--private-key string use provided hex encoded private key
63+
--type string type of signer to use: latest, cancun, london, eip2930, eip155 (default "london")
64+
--unsafe-password string non-interactively specified password for unlocking keystore
65+
-v, --verbosity string log level (string or int):
66+
0 - silent
67+
100 - panic
68+
200 - fatal
69+
300 - error
70+
400 - warn
71+
500 - info (default)
72+
600 - debug
73+
700 - trace (default "info")
6174
```
6275
6376
## See also

doc/polycli_signer_import.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,30 @@ The `--key-id` is also important. This will set the name of the key that's going
5454
The command also inherits flags from parent commands.
5555

5656
```bash
57-
--config string config file (default is $HOME/.polygon-cli.yaml)
58-
--pretty-logs output logs in pretty format instead of JSON (default true)
59-
-v, --verbosity string log level (string or int):
60-
0 - silent
61-
100 - panic
62-
200 - fatal
63-
300 - error
64-
400 - warn
65-
500 - info (default)
66-
600 - debug
67-
700 - trace (default "info")
57+
--chain-id uint chain ID for transactions
58+
--config string config file (default is $HOME/.polygon-cli.yaml)
59+
--data-file string file name holding data to be signed
60+
--gcp-import-job-id string GCP import job ID to use when importing key
61+
--gcp-key-version int GCP crypto key version to use (default 1)
62+
--gcp-keyring-id string GCP keyring ID to be used (default "polycli-keyring")
63+
--gcp-location string GCP region to use (default "europe-west2")
64+
--gcp-project-id string GCP project ID to use
65+
--key-id string ID of key to be used for signing
66+
--keystore string use keystore in given folder or file
67+
--kms string AWS or GCP if key is stored in cloud
68+
--pretty-logs output logs in pretty format instead of JSON (default true)
69+
--private-key string use provided hex encoded private key
70+
--type string type of signer to use: latest, cancun, london, eip2930, eip155 (default "london")
71+
--unsafe-password string non-interactively specified password for unlocking keystore
72+
-v, --verbosity string log level (string or int):
73+
0 - silent
74+
100 - panic
75+
200 - fatal
76+
300 - error
77+
400 - warn
78+
500 - info (default)
79+
600 - debug
80+
700 - trace (default "info")
6881
```
6982
7083
## See also

doc/polycli_signer_list.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,30 @@ polycli signer list --kms GCP --gcp-project-id prj-polygonlabs-devtools-dev --gc
4040
The command also inherits flags from parent commands.
4141

4242
```bash
43-
--config string config file (default is $HOME/.polygon-cli.yaml)
44-
--pretty-logs output logs in pretty format instead of JSON (default true)
45-
-v, --verbosity string log level (string or int):
46-
0 - silent
47-
100 - panic
48-
200 - fatal
49-
300 - error
50-
400 - warn
51-
500 - info (default)
52-
600 - debug
53-
700 - trace (default "info")
43+
--chain-id uint chain ID for transactions
44+
--config string config file (default is $HOME/.polygon-cli.yaml)
45+
--data-file string file name holding data to be signed
46+
--gcp-import-job-id string GCP import job ID to use when importing key
47+
--gcp-key-version int GCP crypto key version to use (default 1)
48+
--gcp-keyring-id string GCP keyring ID to be used (default "polycli-keyring")
49+
--gcp-location string GCP region to use (default "europe-west2")
50+
--gcp-project-id string GCP project ID to use
51+
--key-id string ID of key to be used for signing
52+
--keystore string use keystore in given folder or file
53+
--kms string AWS or GCP if key is stored in cloud
54+
--pretty-logs output logs in pretty format instead of JSON (default true)
55+
--private-key string use provided hex encoded private key
56+
--type string type of signer to use: latest, cancun, london, eip2930, eip155 (default "london")
57+
--unsafe-password string non-interactively specified password for unlocking keystore
58+
-v, --verbosity string log level (string or int):
59+
0 - silent
60+
100 - panic
61+
200 - fatal
62+
300 - error
63+
400 - warn
64+
500 - info (default)
65+
600 - debug
66+
700 - trace (default "info")
5467
```
5568
5669
## See also

doc/polycli_signer_sign.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,30 @@ polycli signer sign --kms GCP --gcp-project-id prj-polygonlabs-devtools-dev --ke
104104
The command also inherits flags from parent commands.
105105

106106
```bash
107-
--config string config file (default is $HOME/.polygon-cli.yaml)
108-
--pretty-logs output logs in pretty format instead of JSON (default true)
109-
-v, --verbosity string log level (string or int):
110-
0 - silent
111-
100 - panic
112-
200 - fatal
113-
300 - error
114-
400 - warn
115-
500 - info (default)
116-
600 - debug
117-
700 - trace (default "info")
107+
--chain-id uint chain ID for transactions
108+
--config string config file (default is $HOME/.polygon-cli.yaml)
109+
--data-file string file name holding data to be signed
110+
--gcp-import-job-id string GCP import job ID to use when importing key
111+
--gcp-key-version int GCP crypto key version to use (default 1)
112+
--gcp-keyring-id string GCP keyring ID to be used (default "polycli-keyring")
113+
--gcp-location string GCP region to use (default "europe-west2")
114+
--gcp-project-id string GCP project ID to use
115+
--key-id string ID of key to be used for signing
116+
--keystore string use keystore in given folder or file
117+
--kms string AWS or GCP if key is stored in cloud
118+
--pretty-logs output logs in pretty format instead of JSON (default true)
119+
--private-key string use provided hex encoded private key
120+
--type string type of signer to use: latest, cancun, london, eip2930, eip155 (default "london")
121+
--unsafe-password string non-interactively specified password for unlocking keystore
122+
-v, --verbosity string log level (string or int):
123+
0 - silent
124+
100 - panic
125+
200 - fatal
126+
300 - error
127+
400 - warn
128+
500 - info (default)
129+
600 - debug
130+
700 - trace (default "info")
118131
```
119132
120133
## See also

0 commit comments

Comments
 (0)