Skip to content

Commit

Permalink
#27 - Merge latest develop, resolve conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
anovikov-el committed Sep 3, 2024
2 parents b686ea6 + 56d25b2 commit 071a957
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
11 changes: 6 additions & 5 deletions docs/commands.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NAME

rmk - Reduced management for Kubernetes
RMK CLI - Reduced management for Kubernetes

## SYNOPSIS

Expand All @@ -16,10 +16,11 @@ rmk
## DESCRIPTION

Command line tool for reduced management of the provision of Kubernetes clusters in different environments and management of service releases.
BuiltBy: goreleaser
Commit: 9d85b2c
Date: 2024-07-25T14:59:40Z
Target: linux_amd64

**BuiltBy:** goreleaser \
**Commit:** edbe501 \
**Date:** 2024-09-02T14:44:39Z \
**Target:** linux_amd64

**Usage**:

Expand Down
3 changes: 2 additions & 1 deletion docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- #27 Configured GitHub Pages documentation generation using MkDocs Materials, mike.
- #27 - Configured GitHub Pages documentation generation using MkDocs Materials, mike.
- #42 - Fixed markdown headers in rmk doc generate command.
39 changes: 39 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"sort"
"strings"

"github.com/urfave/cli/v2"
"go.uber.org/zap"
Expand Down Expand Up @@ -39,6 +40,44 @@ GLOBAL OPTIONS:
GLOBAL OPTIONS:
` + output + `{{range $index, $option := .VisibleFlags}}{{if eq $option.Name "help"}}{{" "}}{{$option}}{{end}}{{end}}
`

cli.MarkdownDocTemplate = `{{if gt .SectionNum 0}}% {{ .App.Name }} {{ .SectionNum }}
{{end}}# NAME
` + strings.ToUpper(name) + ` CLI{{ if .App.Usage }} - {{ .App.Usage }}{{ end }}
## SYNOPSIS
{{ .App.Name }}
{{ if .SynopsisArgs }}
` + "```" + `
{{ range $v := .SynopsisArgs }}{{ $v }}{{ end }}` + "```" + `
{{ end }}{{ if .App.Description }}
## DESCRIPTION
Command line tool for reduced management of the provision of Kubernetes clusters in different environments and management of service releases.
**BuiltBy:** ` + builtBy + ` \
**Commit:** ` + commit + ` \
**Date:** ` + date + ` \
**Target:** ` + target + `
{{ end }}
**Usage**:
` + "```" + `{{ if .App.UsageText }}
{{ .App.UsageText }}
{{ else }}
{{ .App.Name }} [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]
{{ end }}` + "```" + `
{{ if .GlobalArgs }}
## GLOBAL OPTIONS
{{ range $v := .GlobalArgs }}
{{ $v }}{{ end }}
{{ end }}{{ if .Commands }}
## COMMANDS
{{ range $v := .Commands }}
#{{ $v }}{{ end }}{{ end }}`
}

func runCLI() *cli.App {
Expand Down

0 comments on commit 071a957

Please sign in to comment.