Skip to content

Commit 263fd66

Browse files
authored
Merge pull request #9 from inteon/rename
Rename helm-docgen to helm-tool
2 parents 7092aaa + 38277b5 commit 263fd66

File tree

12 files changed

+32
-30
lines changed

12 files changed

+32
-30
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Helm Docgen generates documentation for Helm charts by reading the values.yaml f
44

55
## Usage
66

7-
There are two commands that can be used to generate documentation, `helm-docgen render` and `helm-docgen inject`.
7+
There are two commands that can be used to generate documentation, `helm-tool render` and `helm-tool inject`.
88

9-
- `helm-docgen render` - The render command will simply render the markdown to the stdout
10-
- `helm-docgen inject` - The inject command will inject the generated documentation into an existing markdown file, it will look for the `## Properties` header and inject the documentation between it and the next header. This can be useful for keeping a chart README up to date.
9+
- `helm-tool render` - The render command will simply render the markdown to the stdout
10+
- `helm-tool inject` - The inject command will inject the generated documentation into an existing markdown file, it will look for the `## Properties` header and inject the documentation between it and the next header. This can be useful for keeping a chart README up to date.
1111

1212
## Customising the output
1313

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/cert-manager/helm-docgen
1+
module github.com/cert-manager/helm-tool
22

33
go 1.21
44

linter/linter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"slices"
2323
"strings"
2424

25-
"github.com/cert-manager/helm-docgen/linter/parsetemplates"
26-
"github.com/cert-manager/helm-docgen/parser"
25+
"github.com/cert-manager/helm-tool/linter/parsetemplates"
26+
"github.com/cert-manager/helm-tool/parser"
2727
)
2828

2929
func Lint(

linter/parsetemplates/templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"text/template"
2626
"text/template/parse"
2727

28-
"github.com/cert-manager/helm-docgen/linter/parsetemplates/funcs_serdes"
28+
"github.com/cert-manager/helm-tool/linter/parsetemplates/funcs_serdes"
2929
)
3030

3131
func ListTemplatePaths(templatesPath string) ([]string, error) {

linter/parsetemplates/templates_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"testing"
2323
"text/template"
2424

25-
"github.com/cert-manager/helm-docgen/linter/parsetemplates"
26-
"github.com/cert-manager/helm-docgen/linter/parsetemplates/funcs_serdes"
25+
"github.com/cert-manager/helm-tool/linter/parsetemplates"
26+
"github.com/cert-manager/helm-tool/linter/parsetemplates/funcs_serdes"
2727
"github.com/stretchr/testify/require"
2828
)
2929

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import (
2121
"os"
2222
"regexp"
2323

24-
"github.com/cert-manager/helm-docgen/linter"
25-
"github.com/cert-manager/helm-docgen/parser"
26-
"github.com/cert-manager/helm-docgen/render"
27-
"github.com/cert-manager/helm-docgen/schema"
24+
"github.com/cert-manager/helm-tool/linter"
25+
"github.com/cert-manager/helm-tool/parser"
26+
"github.com/cert-manager/helm-tool/render"
27+
"github.com/cert-manager/helm-tool/schema"
2828
"github.com/spf13/cobra"
2929
)
3030

@@ -39,7 +39,7 @@ var (
3939
)
4040

4141
var Cmd = cobra.Command{
42-
Use: "helm-docgen",
42+
Use: "helm-tool",
4343
}
4444

4545
var Render = cobra.Command{

make/00_mod.mk

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
repo_name := github.com/cert-manager/helm-docgen
15+
repo_name := github.com/cert-manager/helm-tool
1616

17-
build_names := helm-docgen
17+
build_names := helm-tool
1818

19-
go_helm-docgen_source_path := main.go
20-
go_helm-docgen_ldflags := -X $(repo_name)/internal/version.AppVersion=$(VERSION) -X $(repo_name)/internal/version.GitCommit=$(GITCOMMIT)
19+
go_helm-tool_source_path := main.go
20+
go_helm-tool_ldflags := -X $(repo_name)/internal/version.AppVersion=$(VERSION) -X $(repo_name)/internal/version.GitCommit=$(GITCOMMIT)
2121

22-
oci_helm-docgen_base_image_flavor := static
23-
oci_helm-docgen_image_name := quay.io/jetstack/helm-docgen
24-
oci_helm-docgen_image_tag := $(VERSION)
25-
oci_helm-docgen_image_name_development := cert-manager.local/helm-docgen
22+
oci_helm-tool_base_image_flavor := static
23+
oci_helm-tool_image_name := quay.io/jetstack/helm-tool
24+
oci_helm-tool_image_tag := $(VERSION)
25+
oci_helm-tool_image_name_development := cert-manager.local/helm-tool

make/test-unit.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
## @category Testing
1818
test-unit: | $(NEEDS_GO) $(NEEDS_GOTESTSUM) $(ARTIFACTS)
1919
$(GOTESTSUM) \
20+
--junitfile=$(ARTIFACTS)/junit-go-e2e.xml \
21+
-- \
22+
-coverprofile=$(ARTIFACTS)/filtered.cov \
2023
./... \
2124
-- \
22-
-ldflags $(go_manager_ldflags) \
23-
-coverprofile cover.out
25+
-ldflags $(go_manager_ldflags)
2426

2527
$(GO) tool cover -html=$(ARTIFACTS)/filtered.cov -o=$(ARTIFACTS)/filtered.html

parser/comment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
package parser
1818

19-
import "github.com/cert-manager/helm-docgen/heuristics"
19+
import "github.com/cert-manager/helm-tool/heuristics"
2020

2121
type Comment struct {
2222
heuristics.CommentBlock

parser/document.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"os"
2222
"strings"
2323

24-
"github.com/cert-manager/helm-docgen/heuristics"
25-
"github.com/cert-manager/helm-docgen/paths"
24+
"github.com/cert-manager/helm-tool/heuristics"
25+
"github.com/cert-manager/helm-tool/paths"
2626
"gopkg.in/yaml.v3"
2727
)
2828

0 commit comments

Comments
 (0)