Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Extend length of docs section to 120 characters (#159)
Browse files Browse the repository at this point in the history
Signed-off-by: eduardo apolinario <[email protected]>
Co-authored-by: eduardo apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored Jul 7, 2023
1 parent 53f62a7 commit 3322b07
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions config/config_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ import (
)

const (
PathFlag = "file"
StrictModeFlag = "strict"
CommandValidate = "validate"
CommandDiscover = "discover"
CommandDocs = "docs"
PathFlag = "file"
StrictModeFlag = "strict"
CommandValidate = "validate"
CommandDiscover = "discover"
CommandDocs = "docs"
DocsSectionLength = 120
)

type AccessorProvider func(options Options) Accessor
Expand Down Expand Up @@ -182,10 +183,10 @@ func printToc(orderedSectionKeys sets.String) {
func printTitle(title string, isSubsection bool) {
if isSubsection {
fmt.Println(title)
fmt.Println(strings.Repeat("^", 80))
fmt.Println(strings.Repeat("^", DocsSectionLength))
} else {
fmt.Println("Section:", title)
fmt.Println(strings.Repeat("=", 80))
fmt.Println(strings.Repeat("=", DocsSectionLength))
}
fmt.Println()
}
Expand All @@ -198,7 +199,7 @@ func printSection(name string, dataType string, defaultValue string, description

fmt.Printf("%s ", name)
fmt.Printf("(%s)\n", dataType)
fmt.Println(strings.Repeat(c, 80))
fmt.Println(strings.Repeat(c, DocsSectionLength))
fmt.Println()
if description != "" {
fmt.Printf("%s\n\n", description)
Expand Down

0 comments on commit 3322b07

Please sign in to comment.