mirror of
https://github.com/spf13/cobra
synced 2025-05-07 13:57:21 +00:00
package comment should be of the form "Package cmd ...", add a new line avoid this.
This commit is contained in:
parent
090d94f474
commit
de693f461d
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ func MainTemplate() []byte {
|
|||
{{ .Copyright }}
|
||||
{{ if .Legal.Header }}{{ .Legal.Header }}{{ end }}
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import "{{ .PkgName }}/cmd"
|
||||
|
@ -20,6 +21,7 @@ func RootTemplate() []byte {
|
|||
{{ .Copyright }}
|
||||
{{ if .Legal.Header }}{{ .Legal.Header }}{{ end }}
|
||||
*/
|
||||
|
||||
package cmd
|
||||
|
||||
import (
|
||||
|
@ -112,6 +114,7 @@ func AddCommandTemplate() []byte {
|
|||
{{ .Project.Copyright }}
|
||||
{{ if .Legal.Header }}{{ .Legal.Header }}{{ end }}
|
||||
*/
|
||||
|
||||
package cmd
|
||||
|
||||
import (
|
||||
|
|
Loading…
Add table
Reference in a new issue