// Test to see if we have a reason to print See Also information in docs // Basically this is a test for a parent command or a subcommand which is // both not deprecated and not the autogenerated help command. func hasSeeAlso(cmd *cobra.Command) bool { … } // Temporary workaround for yaml lib generating incorrect yaml with long strings // that do not contain \n. func forceMultiLine(s string) string { … } type byName … func (s byName) Len() int { … } func (s byName) Swap(i, j int) { … } func (s byName) Less(i, j int) bool { … }