Skip to content

Commit 214fbbd

Browse files
committed
style some more stuff
1 parent 54b137d commit 214fbbd

File tree

3 files changed

+275
-284
lines changed

3 files changed

+275
-284
lines changed

content/md/en/docs/reference/command-line-tools/subxt.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ The [`subxt`](https://github.com/paritytech/subxt) library enables you to submit
88
Before you use the `subxt` library, you can use the standalone `subxt` command-line interface to download the metadata for the Substrate node you want to use as the target for submitting transactions.
99
The `subxt-cli` tool enables you to perform two key tasks that are critical to using the `subxt` library:
1010

11-
* You can use the `subxt-cli` tool to download the metadata from any target Substrate node.
12-
* You can use the `subxt-cli` tool to generate the runtime API code from the metadata from any target Substrate node.
11+
- You can use the `subxt-cli` tool to download the metadata from any target Substrate node.
12+
- You can use the `subxt-cli` tool to generate the runtime API code from the metadata from any target Substrate node.
1313

1414
You can use the `subxt` library and `subxt-cli` tool for any node that uses metadata v14 and later.
1515
For examples of how to use the `subxt` library, see the [examples](https://github.com/paritytech/subxt/tree/master/examples/examples) folder.
@@ -21,7 +21,7 @@ To install `subxt-cli`:
2121
1. Open a terminal shell, if necessary.
2222
1. Verify that you have the Rust compiler and toolchain, if necessary.
2323
1. Download the required packages with the following command:
24-
`cargo install subxt-cli`
24+
`cargo install subxt-cli`
2525

2626
## Basic command usage
2727

@@ -36,28 +36,28 @@ If the metadata is already provided, it is possible to use the `codegen` subcomm
3636

3737
You can use the following optional flags with the `subxt` command.
3838

39-
| Flag | Description
40-
| ------- | -----------
41-
| -h, --help | Displays usage information.
42-
| -V, --version | Displays version information.
39+
| Flag | Description |
40+
| ------------- | ----------------------------- |
41+
| -h, --help | Displays usage information. |
42+
| -V, --version | Displays version information. |
4343

4444
### Subcommands
4545

4646
You can use the following subcommands with the `subxt` command-line interface.
4747

48-
| Command | Description
49-
| ------- | -----------
50-
| `codegen` | Generates runtime API client code from metadata.
51-
| `metadata` | Downloads metadata from a Substrate node for use with `subxt` codegen.
48+
| Command | Description |
49+
| ---------- | ---------------------------------------------------------------------- |
50+
| `codegen` | Generates runtime API client code from metadata. |
51+
| `metadata` | Downloads metadata from a Substrate node for use with `subxt` codegen. |
5252

5353
### Output
5454

5555
Depending on how you specify the subcommand, the output from `subxt` displays some or all of the following information:
5656

57-
| This field | Contains
58-
| ---------- | ----------
59-
| Metadata | A file with the metadata of a target chain.
60-
| API | A file with the API of the target chain.
57+
| This field | Contains |
58+
| ---------- | ------------------------------------------- |
59+
| Metadata | A file with the metadata of a target chain. |
60+
| API | A file with the API of the target chain. |
6161

6262
### Examples
6363

@@ -83,19 +83,19 @@ This could be useful for debugging or modifying a node's API to meet certain har
8383

8484
You can use the following optional flags with the `subxt codegen` command.
8585

86-
| Flag | Description
87-
| ------ | -----------
88-
| `-h, --help` | Displays usage information.
89-
| `-V, --version` | Prints version information.
86+
| Flag | Description |
87+
| --------------- | --------------------------- |
88+
| `-h, --help` | Displays usage information. |
89+
| `-V, --version` | Prints version information. |
9090

9191
#### Options
9292

9393
You can use the following command-line options with the `subxt codegen` command.
9494

95-
| Option | Description
96-
| -------- | -----------
97-
| `-f, --file <file>` | Specifies the path to the encoded metadata file.
98-
| `--url <url>` | Specifies the URL of the Substrate node to query for metadata for codegen.
95+
| Option | Description |
96+
| ------------------- | -------------------------------------------------------------------------- |
97+
| `-f, --file <file>` | Specifies the path to the encoded metadata file. |
98+
| `--url <url>` | Specifies the URL of the Substrate node to query for metadata for codegen. |
9999

100100
#### Examples
101101

@@ -119,19 +119,19 @@ Use the `subxt metadata` command to get the metadata of the target Substrate nod
119119

120120
You can use the following optional flags with the `subxt metadata` command.
121121

122-
| Flag | Description
123-
| ------ | -----------
124-
| `-h, --help` | Displays usage information.
125-
| `-V, --version` | Prints version information.
122+
| Flag | Description |
123+
| --------------- | --------------------------- |
124+
| `-h, --help` | Displays usage information. |
125+
| `-V, --version` | Prints version information. |
126126

127127
#### Options
128128

129129
You can use the following command-line options with the `subxt metadata` command.
130130

131-
| Option | Description
132-
| -------- | -----------
133-
| `-f, --format <format>` | Specifies the format of the metadata to display. Valid formats are `json`, `hex` or `bytes`. The default format is `json`.
134-
| `--url <url>` | Specifies the URL of the Substrate node to query for metadata. The default URL is `http://localhost:9933`.
131+
| Option | Description |
132+
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------- |
133+
| `-f, --format <format>` | Specifies the format of the metadata to display. Valid formats are `json`, `hex` or `bytes`. The default format is `json`. |
134+
| `--url <url>` | Specifies the URL of the Substrate node to query for metadata. The default URL is `http://localhost:9933`. |
135135

136136
#### Examples
137137

0 commit comments

Comments
 (0)