spf13--cobra/cobra/cmd
Joe Richey ada5eb9754 Add config to prevent addition of copyright notice
Some projects do not add copyright headers to the tops of their files.
Right now you can specify `license: none` to prevent a license from
being generated for the file. But you will still get a line like:
  `// Copyright © 2017 NAME HERE <EMAIL ADDRESS>`

This change allows passing `author: none` to prevent that line from
being generated. The change does not alter the defaults. However, it
does slightly change the formatting templates to prevent the
extraneous addition of newlines when an author or liciece line is not
requested.
2019-05-16 21:21:26 -07:00
..
testdata Remove trailing whitespace in rootcmd (#606) 2017-12-31 15:15:56 +05:00
add.go Add config to prevent addition of copyright notice 2019-05-16 21:21:26 -07:00
add_test.go Fix remaining reproducibility in TestGoldenAddCmd 2017-07-31 11:04:27 -06:00
golden_test.go [TrivialPatches] Typos in README.md, fix and update CI, update projects list... (#840) 2019-03-20 17:21:26 -04:00
helpers.go cmd: Fix #612 (#614) 2018-01-15 17:09:33 +01:00
init.go Add config to prevent addition of copyright notice 2019-05-16 21:21:26 -07:00
init_test.go cmd: Fix golden tests if user has config at $HOME 2017-07-31 06:38:19 -06:00
license_agpl.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_apache_2.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_bsd_clause_2.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_bsd_clause_3.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_gpl_2.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_gpl_3.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_lgpl.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
license_mit.go cmd: Refine formatting of included licenses 2017-07-30 02:35:06 -06:00
licenses.go Add config to prevent addition of copyright notice 2019-05-16 21:21:26 -07:00
project.go cmd: Fix #612 (#614) 2018-01-15 17:09:33 +01:00
project_test.go cmd: Use correct HasPrefix function for paths 2017-05-15 09:51:20 +02:00
root.go Restore the use of cobra.OnInitialize in cobra executable 2017-07-30 01:19:17 -06:00