Skip to content

Commit a2f9a71

Browse files
committed
Fix linting
1 parent 7332a79 commit a2f9a71

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

cmd/gen-docs/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ Use "{{.CommandPath}} [command] --help" for more information about a command.{{e
241241
## Learn more
242242
243243
- [Octopus CLI](/docs/octopus-rest-api/cli)
244-
- [Creating API keys](/docs/octopus-rest-api/how-to-create-an-api-key)`
244+
- [Creating API keys](/docs/octopus-rest-api/how-to-create-an-api-key)
245+
`
245246

246247
const indexTemplate = `---
247248
layout: src/layouts/Default.astro
@@ -263,7 +264,8 @@ The Octopus CLI is built and maintained by the Octopus Deploy team, but it is al
263264
264265
## Commands {#octopusCommandLine-Commands}
265266
266-
` + "\n`octopus` supports the following commands:\n" +
267+
` + "`octopus` supports the following commands:" +
267268
`
268269
{{range .Pages}}
269-
- **[{{.Title}}]({{.RelativePath}})**: {{.Command.Short}}.{{end}}`
270+
- **[{{.Title}}]({{.RelativePath}})**: {{.Command.Short}}.{{end}}
271+
`

pkg/cmd/config/get/get.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ func NewCmdGet(f factory.Factory) *cobra.Command {
1717
cmd := &cobra.Command{
1818
Use: "get [key]",
1919
Short: "Gets the value of config key for Octopus CLI",
20+
Long: "Gets the value of config key for Octopus CLI.",
2021
RunE: func(cmd *cobra.Command, args []string) error {
2122
key := ""
2223
if len(args) > 0 {

pkg/cmd/config/set/set.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func NewCmdSet(f factory.Factory) *cobra.Command {
1818
cmd := &cobra.Command{
1919
Use: "set [key] [value]",
2020
Short: "Set will write the value for given key to Octopus CLI config file",
21+
Long: "Set will write the value for given key to Octopus CLI config file.",
2122
RunE: func(_ *cobra.Command, args []string) error {
2223
key := ""
2324
value := ""

pkg/cmd/package/upload/upload.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import (
44
"encoding/json"
55
"errors"
66
"fmt"
7-
"github.com/OctopusDeploy/cli/pkg/apiclient"
87
"io"
98
"os"
109
"path/filepath"
1110
"strings"
1211

12+
"github.com/OctopusDeploy/cli/pkg/apiclient"
13+
1314
"github.com/MakeNowJust/heredoc/v2"
1415
"github.com/OctopusDeploy/cli/pkg/constants"
1516
"github.com/OctopusDeploy/cli/pkg/constants/annotations"
@@ -63,7 +64,7 @@ func NewCmdUpload(f factory.Factory) *cobra.Command {
6364
Example: heredoc.Docf(`
6465
$ %[1]s package upload --package SomePackage.1.0.0.zip
6566
$ %[1]s package upload SomePackage.1.0.0.tar.gz --overwrite-mode overwrite
66-
$ %[1]s package push SomePackage.1.0.0.zip
67+
$ %[1]s package push SomePackage.1.0.0.zip
6768
$ %[1]s package upload bin/**/*.zip --continue-on-error
6869
$ %[1]s package upload PkgA.1.0.0.zip PkgB.2.0.0.tar.gz PkgC.1.0.0.nupkg
6970
$ %[1]s package upload --package SomePackage.2.0.0.zip --use-delta-compression

0 commit comments

Comments
 (0)