mirror of
https://github.com/spf13/cobra
synced 2024-12-28 07:17:06 +00:00
remove commented code
This commit is contained in:
parent
5b1685faaa
commit
91dbcb7ffe
1 changed files with 0 additions and 17 deletions
|
@ -76,23 +76,6 @@ func (p *Project) createLicenseFile() error {
|
|||
return licenseTemplate.Execute(licenseFile, data)
|
||||
}
|
||||
|
||||
//func createLicenseFile(license License, path string) {
|
||||
// data := make(map[string]interface{})
|
||||
// data["copyright"] = copyrightLine()
|
||||
//
|
||||
// // Generate license template from text and data.
|
||||
// text, err := executeTemplate(license.Text, data)
|
||||
// if err != nil {
|
||||
// er(err)
|
||||
// }
|
||||
//
|
||||
// // Write license text to LICENSE file.
|
||||
// err = writeStringToFile(filepath.Join(path, "LICENSE"), text)
|
||||
// if err != nil {
|
||||
// er(err)
|
||||
// }
|
||||
//}
|
||||
|
||||
// NewProject returns Project with specified project name.
|
||||
func NewProject(projectName string) *Project {
|
||||
if projectName == "" {
|
||||
|
|
Loading…
Reference in a new issue