Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to use license text from config #243

Closed
mwmahlberg opened this issue Feb 13, 2016 · 6 comments
Closed

Question: How to use license text from config #243

mwmahlberg opened this issue Feb 13, 2016 · 6 comments
Assignees
Labels
area/cobra-command Core `cobra.Command` implementations kind/bug A bug in cobra; unintended behavior

Comments

@mwmahlberg
Copy link

Albeit cobra states it, a the field licensetext from the config file is ignored.

A proper documentation would be helpful, here.

@ianwalter
Copy link
Contributor

It looks like this functionality doesn't actually exist. You can specify a license and if it matches one of the licenses included in cobra it will use that license but you can't specify your own. I'll submit a pull request to add this functionality which I think will also take care of #249.

@dc0d
Copy link

dc0d commented Apr 17, 2016

Still not fixed.

@n10v n10v added area/cobra-command Core `cobra.Command` implementations kind/bug A bug in cobra; unintended behavior labels May 5, 2017
@jharshman jharshman self-assigned this Mar 31, 2020
@jharshman
Copy link
Collaborator

Needs follow-up

@mwmahlberg
Copy link
Author

@jharshman I can recheck, if that is of any help.

@github-actions
Copy link

github-actions bot commented Jun 4, 2020

This issue is being marked as stale due to a long period of inactivity

@johnSchnake
Copy link
Collaborator

Trying to clean up the backlog (#1600) and I was unable to repro this. Using the example yaml from #261

license:
  header: This file is part of {{ .appName }}.
  text: |
    {{ .copyright }}
    This is my license. There are many like it, but this one is mine.
    My license is my best friend. It is my life. I must master it as I must
    master my life.  

I did cobra init --config mycfg.yaml and the LICENSE file and headers were both customized as expected.

If you think this was closed prematurely, please reopen with more details about what steps you took to recreate the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cobra-command Core `cobra.Command` implementations kind/bug A bug in cobra; unintended behavior
Projects
None yet
Development

No branches or pull requests

6 participants