Unai Martinez-Corral
652c755d37
Use golangci-lint ( #1044 )
...
Use golangci-lint. Repair warnings and errors resulting from linting.
2021-02-07 17:08:50 -07:00
Albert Nigmatzianov
d5bde60e02
cmd: Fix text of custom license
...
Fix #540
2017-10-04 22:36:42 +02:00
Albert Nigmatzianov
99838a52fe
cmd: Small fixes
2017-07-31 06:38:19 -06:00
Anthony Fok
750ba8ac93
Fix reproducibility in TestGolden{Add,Init}Cmd
...
These tests were time-dependent and would start failing in 2018
when the golden files still have the copyright year of 2017.
Fix by hard-coding the year 2017 for the purpose of these two tests
to ensure reproducible builds.
Fixes #503
2017-07-30 00:17:45 -06:00
Albert Nigmatzianov
0dd1c429a3
cmd: Add more docs
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
32756eb440
cmd: Rewrite
2017-05-05 10:35:27 +02:00
Albert Nigmatzianov
164be37318
cmd: Add AGPL license
...
See #318
2017-04-25 18:25:29 +02:00
Albert Nigmatzianov
1efd89226b
cmd: Add LGPL license
...
See #311 , #318
2017-04-25 18:25:29 +02:00
Albert Nigmatzianov
6d4267ffb7
cmd: Delete redundant symbols from helpers_test.go and licenses.go
2017-04-25 18:25:29 +02:00
Albert Nigmatzianov
78a8032244
cmd: Move some license functions from helpers.go to licenses.go
2017-04-25 18:25:29 +02:00
Mark D. Blackwell
0a4540b161
Refactor licenses to many files ( #323 )
2017-04-20 17:34:10 +02:00
Ian Walter
d811f40c6a
Adding custom license functionality
...
* Refactoring code that unnecessarily declares a map before making it.
* Cleaning up gpl3 formatting to match other licenses.
* Adding functionality that allows specifying custom license header
and text in cobra config.
* Using license header and text as templates so that they can use
template variables (for custom and gpl3 licenses).
* Adding ability to specify no license.
* Adding custom license example to README.
2016-04-27 12:03:26 -04:00
Rob Terhaar
3dc021e8c7
add gpl2 license
2016-04-27 12:01:30 -04:00
Rob Terhaar
8bf317ef60
add gpl2 license
2016-04-27 12:01:30 -04:00
Christoph Görn
b167d9beaa
add GNU GPL3 as a license
2015-11-23 11:47:14 -07:00
Anthony Fok
4b096512f3
Reflow license text and add copyright year and name
...
* Format license text and header to fit within 80 characters per line
* Remove extra top line from LICENSE file for Apache-2.0
* Remove the FreeBSD-specific disclaimer from the BSD-2-Clause license
* Use {{ .copyright }} to add "Copyright © YEAR FULL NAME" to the
LICENSE file for MIT and BSD licenses.
2015-11-21 23:37:58 -07:00
Anthony Fok
1e63ad8ed1
Fine-tune the formatting of Cobra’s generated code
2015-11-20 15:28:40 -07:00
spf13
ea5bc31ac4
Add cobra generator application
2015-10-28 12:51:48 -04:00