Skip to content

Commit 78a47a2

Browse files
committed
- [*] move Copyright to root help
1 parent 12c9805 commit 78a47a2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

cli-ext.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ type rootT struct {
2929

3030
var root = &cli.Command{
3131
Name: "{{.Name}}",
32-
Desc: "{{.Desc}}\nVersion " + version + " built on " + date,
32+
Desc: "{{.Desc}}\nVersion " + version + " built on " + date +
33+
"\nCopyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <they@their.org>"}}",
3334
{{if .Text}} Text: "{{.Text}}"{{if .UsageLead}} +
3435
"\n\n{{.UsageLead}}"{{end}},{{end}}
3536
{{if .Global}} Global: {{.Global}},
@@ -115,7 +116,7 @@ var root = &cli.Command{
115116
// Do{{stringsTitle .Name}} implements the business logic of command `{{.Name}}`
116117
// func Do{{stringsTitle .Name}}() error {
117118
// fmt.Fprintf(os.Stderr, "%s v%s. {{.Name}} - {{.Desc}}\n", progname, version)
118-
// fmt.Fprintf(os.Stderr, "Copyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <they@their.org>"}}\n\n")
119+
// // fmt.Fprintf(os.Stderr, "Copyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <they@their.org>"}}\n\n")
119120
// return nil
120121
// }
121122

cli-std.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ type rootT struct {
2727

2828
var root = &cli.Command{
2929
Name: "{{.Name}}",
30-
Desc: "{{.Desc}}\nVersion " + version + " built on " + date,
30+
Desc: "{{.Desc}}\nVersion " + version + " built on " + date +
31+
"\nCopyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <they@their.org>"}}",
3132
{{if .Text}} Text: "{{.Text}}"{{if .UsageLead}} +
3233
"\n\n{{.UsageLead}}"{{end}},{{end}}
3334
{{if .Global}} Global: {{.Global}},
@@ -113,7 +114,7 @@ var root = &cli.Command{
113114
// Do{{stringsTitle .Name}} implements the business logic of command `{{.Name}}`
114115
// func Do{{stringsTitle .Name}}() error {
115116
// fmt.Fprintf(os.Stderr, "%s v%s. {{.Name}} - {{.Desc}}\n", progname, version)
116-
// fmt.Fprintf(os.Stderr, "Copyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <they@their.org>"}}\n\n")
117+
// // fmt.Fprintf(os.Stderr, "Copyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <they@their.org>"}}\n\n")
117118
// return nil
118119
// }
119120

0 commit comments

Comments
 (0)