(w io.Writer, cmd *cobra.Command)
| 27 | } |
| 28 | |
| 29 | func printAliases(w io.Writer, cmd *cobra.Command) { |
| 30 | if len(cmd.Aliases) > 0 { |
| 31 | fmt.Fprintf(w, "### ALIASES\n\n") |
| 32 | fmt.Fprint(w, text.FormatSlice(strings.Split(strings.Join(root.BuildAliasList(cmd, cmd.Aliases), ", "), ","), 0, 0, "", "", true)) |
| 33 | fmt.Fprint(w, "\n\n") |
| 34 | } |
| 35 | |
| 36 | } |
| 37 | |
| 38 | func printOptions(w io.Writer, cmd *cobra.Command) error { |
| 39 | flags := cmd.NonInheritedFlags() |
no test coverage detected