Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: osamamagdy <[email protected]>
  • Loading branch information
osamamagdy committed Jul 29, 2022
1 parent 366fb47 commit 8f1c868
Show file tree
Hide file tree
Showing 39 changed files with 114 additions and 430 deletions.
2 changes: 1 addition & 1 deletion cmd/app/main-win.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build windows
//go:build windows

package app

Expand Down
2 changes: 1 addition & 1 deletion cmd/app/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//nolint:gofmt,goimports
// +build !windows
//go:build !windows

package app

Expand Down
3 changes: 2 additions & 1 deletion docs/cmd/jx.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Jenkins X 3.x command line

* [jx add](jx_add.md) - Adds one or more resources
* [jx create](jx_create.md) - Create one or more resources
* [jx ctx](jx_ctx.md) - alias for: jx ctx
* [jx dashboard](jx_dashboard.md) - View the Jenkins X Pipelines Dashboard
* [jx get](jx_get.md) - Display one or more resources
* [jx import](jx_import.md) - alias for: jx import
Expand All @@ -32,4 +33,4 @@ Jenkins X 3.x command line
* [jx upgrade](jx_upgrade.md) - Upgrades resources
* [jx version](jx_version.md) - Displays the version of this command

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Adds one or more resources
* [jx](jx.md) - Jenkins X 3.x command line
* [jx add app](jx_add_app.md) - alias for: jx app

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_add_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx app

* [jx add](jx_add.md) - Adds one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Create one or more resources
* [jx create quickstart](jx_create_quickstart.md) - alias for: jx quickstart
* [jx create spring](jx_create_spring.md) - alias for: jx spring

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_create_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ alias for: jx project

* [jx create](jx_create.md) - Create one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_create_pullrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx pullrequest

* [jx create](jx_create.md) - Create one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_create_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx quickstart

* [jx create](jx_create.md) - Create one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_create_spring.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx spring

* [jx create](jx_create.md) - Create one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
25 changes: 25 additions & 0 deletions docs/cmd/jx_ctx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## jx ctx

alias for: jx ctx

### Usage

```
jx ctx
```

### Synopsis

alias for: jx ctx

### Options

```
-h, --help help for ctx
```

### SEE ALSO

* [jx](jx.md) - Jenkins X 3.x command line

###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ View the Jenkins X Pipelines Dashboard.

* [jx](jx.md) - Jenkins X 3.x command line

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Display one or more resources
* [jx get pipelines](jx_get_pipelines.md) - alias for: jx pipelines
* [jx get previews](jx_get_previews.md) - alias for: jx previews

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_activities.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx activities

* [jx get](jx_get.md) - Display one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_application.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx application

* [jx get](jx_get.md) - Display one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Display one or more resources relating to a pipeline build
* [jx get build logs](jx_get_build_logs.md) - alias for: jx logs
* [jx get build pods](jx_get_build_pods.md) - alias for: jx pods

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_build_logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx logs

* [jx get build](jx_get_build.md) - Display one or more resources relating to a pipeline build

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_build_pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx pods

* [jx get build](jx_get_build.md) - Display one or more resources relating to a pipeline build

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx pipelines

* [jx get](jx_get.md) - Display one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_get_previews.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx previews

* [jx get](jx_get.md) - Display one or more resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_import.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx import

* [jx](jx.md) - Jenkins X 3.x command line

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
4 changes: 2 additions & 2 deletions docs/cmd/jx_namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

View or change the current namespace context in the current Kubernetes cluster

***Aliases**: ns,ctx*
***Aliases**: ns*

### Usage

Expand Down Expand Up @@ -52,4 +52,4 @@ Displays or changes the current namespace.

* [jx](jx.md) - Jenkins X 3.x command line

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Starts a resource
* [jx](jx.md) - Jenkins X 3.x command line
* [jx start pipeline](jx_start_pipeline.md) - alias for: jx pipeline

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_start_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx pipeline

* [jx start](jx_start.md) - Starts a resource

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Stops a resource
* [jx](jx.md) - Jenkins X 3.x command line
* [jx stop pipeline](jx_stop_pipeline.md) - alias for: jx pipeline

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_stop_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias for: jx pipeline

* [jx stop](jx_stop.md) - Stops a resource

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Views the Jenkins X UI (octant).

* [jx](jx.md) - Jenkins X 3.x command line

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Upgrades all of the plugins in your local Jenkins X CLI
* [jx upgrade cli](jx_upgrade_cli.md) - Upgrades your local Jenkins X CLI
* [jx upgrade plugins](jx_upgrade_plugins.md) - Upgrades all of the plugins in your local Jenkins X CLI

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_upgrade_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Upgrades your local Jenkins X CLI

* [jx upgrade](jx_upgrade.md) - Upgrades resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
2 changes: 1 addition & 1 deletion docs/cmd/jx_upgrade_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Upgrades all of the plugins in your local Jenkins X CLI

* [jx upgrade](jx_upgrade.md) - Upgrades resources

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
3 changes: 2 additions & 1 deletion docs/cmd/jx_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ Displays the version of this command
```
-h, --help help for version
-q, --quiet uses the quiet format of just outputting the version number only
-s, --short uses the short format of just outputting the version number only
```

### SEE ALSO

* [jx](jx.md) - Jenkins X 3.x command line

###### Auto generated by spf13/cobra on 9-Nov-2021
###### Auto generated by spf13/cobra on 29-Jul-2022
34 changes: 34 additions & 0 deletions docs/man/man1/jx-ctx.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.TH "JX\-CTX" "1" "" "Auto generated by spf13/cobra" ""
.nh
.ad l


.SH NAME
.PP
jx\-ctx \- alias for: jx ctx


.SH SYNOPSIS
.PP
\fBjx ctx\fP


.SH DESCRIPTION
.PP
alias for: jx ctx


.SH OPTIONS
.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for ctx


.SH SEE ALSO
.PP
\fBjx(1)\fP


.SH HISTORY
.PP
Auto generated by spf13/cobra
4 changes: 4 additions & 0 deletions docs/man/man1/jx-version.1
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Displays the version of this command
\fB\-q\fP, \fB\-\-quiet\fP[=false]
uses the quiet format of just outputting the version number only

.PP
\fB\-s\fP, \fB\-\-short\fP[=false]
uses the short format of just outputting the version number only


.SH SEE ALSO
.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/jx.1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Jenkins X 3.x command line

.SH SEE ALSO
.PP
\fBjx\-add(1)\fP, \fBjx\-create(1)\fP, \fBjx\-dashboard(1)\fP, \fBjx\-get(1)\fP, \fBjx\-import(1)\fP, \fBjx\-namespace(1)\fP, \fBjx\-start(1)\fP, \fBjx\-stop(1)\fP, \fBjx\-ui(1)\fP, \fBjx\-upgrade(1)\fP, \fBjx\-version(1)\fP
\fBjx\-add(1)\fP, \fBjx\-create(1)\fP, \fBjx\-ctx(1)\fP, \fBjx\-dashboard(1)\fP, \fBjx\-get(1)\fP, \fBjx\-import(1)\fP, \fBjx\-namespace(1)\fP, \fBjx\-start(1)\fP, \fBjx\-stop(1)\fP, \fBjx\-ui(1)\fP, \fBjx\-upgrade(1)\fP, \fBjx\-version(1)\fP


.SH HISTORY
Expand Down
2 changes: 1 addition & 1 deletion hack/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RESET='\033[0m'

if ! [ -x "$(command -v goimports)" ]; then
echo "Installing goimports"
go get golang.org/x/tools/cmd/goimports
go install golang.org/x/tools/cmd/goimports
fi

echo "Running validation scripts..."
Expand Down
Loading

0 comments on commit 8f1c868

Please sign in to comment.