Skip to content

Commit

Permalink
- [*] update cli- wireframe templates
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Jan 11, 2021
1 parent cb37eb8 commit e858e0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cli-ext.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ var root = &cli.Command{
//
// Do{{stringsTitle .Name}} implements the business logic of command `{{.Name}}`
// func Do{{stringsTitle .Name}}() error {
// fmt.Fprintf(os.Stderr, "%s v%s. {{.Name}} - {{.Desc}}\n", progname, version)
// fmt.Fprintf(os.Stderr,
// "%s v%s {{.Name}} - {{.Desc}}\n",
// progname, version)
// // fmt.Fprintf(os.Stderr, "Copyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <[email protected]>"}}\n\n")
// // err := ...
// // clis.AbortOn("Doing {{stringsTitle .Name}}", err)
// return nil
// }

Expand Down
6 changes: 5 additions & 1 deletion cli-std.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ var root = &cli.Command{
//
// Do{{stringsTitle .Name}} implements the business logic of command `{{.Name}}`
// func Do{{stringsTitle .Name}}() error {
// fmt.Fprintf(os.Stderr, "%s v%s. {{.Name}} - {{.Desc}}\n", progname, version)
// fmt.Fprintf(os.Stderr,
// "%s v%s {{.Name}} - {{.Desc}}\n",
// progname, version)
// // fmt.Fprintf(os.Stderr, "Copyright (C) {{ date "Y4" }}, {{or $.Authors "The Author(s) <[email protected]>"}}\n\n")
// // err := ...
// // clis.AbortOn("Doing {{stringsTitle .Name}}", err)
// return nil
// }

Expand Down

0 comments on commit e858e0c

Please sign in to comment.