Skip to content
Myr

Remove extraneous comma at the end of SEE ALSO list

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Anthony Fok · committed by Anthony Fok · parent 9c32fb4 · Browse files · 1 file+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−3 removed

  • other:+6 added−3 removed

1 file+6 added−3 removed

modified:man_docs.go+6 added-3 removed
198 unmodified lines
199 fmt.Fprintf(buf, "# SEE ALSO\n")200 if cmd.HasParent() {201 parentPath := cmd.Parent().CommandPath()202 dashParentPath := strings.Replace(parentPath, " ", "-", -1)203 fmt.Fprintf(buf, "**%s(%s)**, ", dashParentPath, header.Section)203 fmt.Fprintf(buf, "**%s(%s)**", dashParentPath, header.Section)204 cmd.VisitParents(func(c *Command) {205 if c.DisableAutoGenTag {206 cmd.DisableAutoGenTag = c.DisableAutoGenTag207 }208 })209 }210 children := cmd.Commands()211 sort.Sort(byName(children))212 for _, c := range children {212 for i, c := range children {213 if !c.IsAvailableCommand() || c == cmd.helpCommand {214 continue215 }216 if cmd.HasParent() || i > 0 {217 fmt.Fprintf(buf, ", ")218 }216 fmt.Fprintf(buf, "**%s-%s(%s)**, ", dashCommandName, c.Name(), header.Section)219 fmt.Fprintf(buf, "**%s-%s(%s)**", dashCommandName, c.Name(), header.Section)220 }221 fmt.Fprintf(buf, "\n")222 }223 if !cmd.DisableAutoGenTag {
4 unmodified lines