File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
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.
You can’t perform that action at this time.
0 commit comments