const Indentation … // LongDesc normalizes a command's long description to follow the conventions. func LongDesc(s string) string { … } // Examples normalizes a command's examples to follow the conventions. func Examples(s string) string { … } // Normalize perform all required normalizations on a given command. func Normalize(cmd *cobra.Command) *cobra.Command { … } // NormalizeAll perform all required normalizations in the entire command tree. func NormalizeAll(cmd *cobra.Command) *cobra.Command { … } type normalizer … func (s normalizer) markdown() normalizer { … } func (s normalizer) heredoc() normalizer { … } func (s normalizer) trim() normalizer { … } func (s normalizer) indent() normalizer { … }