Skip to content

Commit

Permalink
docs(mdx): Ensure short description ending with a period
Browse files Browse the repository at this point in the history
  • Loading branch information
clemfromspace committed Oct 26, 2023
1 parent f0d2c30 commit cfe9906
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func newFlags(flagSet *pflag.FlagSet) []Flag {

func newCommand(cmd *cobra.Command) Command {
categoryFlagSet := cmdutil.NewCategoryFlagSet(cmd.NonInheritedFlags())
// Make sure the command description ends with a period.
if !strings.HasSuffix(cmd.Short, ".") {
cmd.Short += "."
}

command := Command{
Name: cmd.CommandPath(),
Description: cmd.Short,
Expand Down

0 comments on commit cfe9906

Please sign in to comment.