Skip to content

Commit 884d73d

Browse files
authored
Merge pull request cli#4587 from dhiemaz/fixing-docs-numbering
Fixing docs numbering
2 parents 7526ea5 + 0007dce commit 884d73d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/project-layout.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ and talk through which code gets run in order.
6060

6161
## How to add a new command
6262

63-
0. First, check on our issue tracker to verify that our team had approved the plans for a new command.
64-
1. Create a package for the new command, e.g. for a new command `gh boom` create the following directory
63+
1. First, check on our issue tracker to verify that our team had approved the plans for a new command.
64+
2. Create a package for the new command, e.g. for a new command `gh boom` create the following directory
6565
structure: `pkg/cmd/boom/`
66-
2. The new package should expose a method, e.g. `NewCmdBoom()`, that accepts a `*cmdutil.Factory` type and
66+
3. The new package should expose a method, e.g. `NewCmdBoom()`, that accepts a `*cmdutil.Factory` type and
6767
returns a `*cobra.Command`.
6868
* Any logic specific to this command should be kept within the command's package and not added to any
6969
"global" packages like `api` or `utils`.
70-
3. Use the method from the previous step to generate the command and add it to the command tree, typically
70+
4. Use the method from the previous step to generate the command and add it to the command tree, typically
7171
somewhere in the `NewCmdRoot()` method.
7272

7373
## How to write tests

docs/source.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Installation from source
22

3-
0. Verify that you have Go 1.16+ installed
3+
1. Verify that you have Go 1.16+ installed
44

55
```sh
66
$ go version
77
```
88

99
If `go` is not installed, follow instructions on [the Go website](https://golang.org/doc/install).
1010

11-
1. Clone this repository
11+
2. Clone this repository
1212

1313
```sh
1414
$ git clone https://github.com/cli/cli.git gh-cli
1515
$ cd gh-cli
1616
```
1717

18-
2. Build and install
18+
3. Build and install
1919

2020
#### Unix-like systems
2121
```sh
@@ -33,7 +33,7 @@
3333
```
3434
There is no install step available on Windows.
3535

36-
3. Run `gh version` to check if it worked.
36+
4. Run `gh version` to check if it worked.
3737

3838
#### Windows
3939
Run `bin\gh version` to check if it worked.

0 commit comments

Comments
 (0)