forked from goharbor/harbor-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MAN PAGES Documentation script (goharbor#75)
* add: auto man documentation generate scripts Signed-off-by: bupd <bupdprasanth@gmail.com> add: auto documentation generate scripts Signed-off-by: bupd <bupdprasanth@gmail.com> * remove md_doc generation & add man docs Signed-off-by: bupd <bupdprasanth@gmail.com> * update dagger for generating man pages Signed-off-by: bupd <bupdprasanth@gmail.com> * update github workflow Signed-off-by: bupd <bupdprasanth@gmail.com> * update man doc generation Signed-off-by: bupd <bupdprasanth@gmail.com> * add cli and man docs Signed-off-by: bupd <bupdprasanth@gmail.com> * update workflow Signed-off-by: bupd <bupdprasanth@gmail.com> * move man pages to man1 Signed-off-by: bupd <bupdprasanth@gmail.com> --------- Signed-off-by: bupd <bupdprasanth@gmail.com>
- Loading branch information
Showing
68 changed files
with
2,900 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
diff --git a/.golangci.yaml b/.golangci.yaml | ||
index b9a4d4f27..fb281a936 100644 | ||
--- a/.golangci.yaml | ||
+++ b/.golangci.yaml | ||
@@ -1,12 +1,32 @@ | ||
run: | ||
timeout: 3m | ||
+linters-settings: | ||
+ gofmt: | ||
+ # Simplify code: gofmt with `-s` option. | ||
+ # Default: true | ||
+ simplify: false | ||
+ misspell: | ||
+ locale: US,UK | ||
+ stylecheck: | ||
+ checks: [ | ||
+ "ST1019", # Importing the same package multiple times. | ||
+ ] | ||
+ goheader: | ||
+ template-path: copyright.tmpl | ||
+ | ||
linters: | ||
enable: | ||
# Default linters are already enabled, these are the additional ones | ||
+ - gosimple | ||
- typecheck | ||
- gofmt | ||
+ - goimports | ||
- gosec | ||
- nilnil | ||
+ - unused | ||
+ - errcheck | ||
+ - staticcheck | ||
+ - dupl | ||
# - wrapcheck | ||
# - gocritic | ||
# - revive #, enable once current issues are resolved | ||
diff --git a/pkg/views/artifact/list/view.go b/pkg/views/artifact/list/view.go | ||
index 3b851aeeb..62901de74 100644 | ||
--- a/pkg/views/artifact/list/view.go | ||
+++ b/pkg/views/artifact/list/view.go | ||
@@ -2,13 +2,14 @@ package list | ||
|
||
import ( | ||
"fmt" | ||
+ "os" | ||
+ "strconv" | ||
+ | ||
"github.com/charmbracelet/bubbles/table" | ||
tea "github.com/charmbracelet/bubbletea" | ||
"github.com/goharbor/go-client/pkg/sdk/v2.0/models" | ||
"github.com/goharbor/harbor-cli/pkg/utils" | ||
"github.com/goharbor/harbor-cli/pkg/views/base/tablelist" | ||
- "os" | ||
- "strconv" | ||
) | ||
|
||
var columns = []table.Column{ | ||
diff --git a/pkg/views/artifact/view/view.go b/pkg/views/artifact/view/view.go | ||
index 0ab46ae7f..13288d17b 100644 | ||
--- a/pkg/views/artifact/view/view.go | ||
+++ b/pkg/views/artifact/view/view.go | ||
@@ -2,13 +2,14 @@ package view | ||
|
||
import ( | ||
"fmt" | ||
+ "os" | ||
+ "strconv" | ||
+ | ||
"github.com/charmbracelet/bubbles/table" | ||
tea "github.com/charmbracelet/bubbletea" | ||
"github.com/goharbor/go-client/pkg/sdk/v2.0/models" | ||
"github.com/goharbor/harbor-cli/pkg/utils" | ||
"github.com/goharbor/harbor-cli/pkg/views/base/tablelist" | ||
- "os" | ||
- "strconv" | ||
) | ||
|
||
var columns = []table.Column{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.