forked from mirror/cobra
remove commented code
This commit is contained in:
parent
5b1685faaa
commit
91dbcb7ffe
|
@ -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 New Issue