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

Create a choco license command #2829

Open
mkevenaar opened this issue Sep 27, 2019 · 2 comments · May be fixed by #2847
Open

Create a choco license command #2829

mkevenaar opened this issue Sep 27, 2019 · 2 comments · May be fixed by #2847

Comments

@mkevenaar
Copy link
Contributor

mkevenaar commented Sep 27, 2019

What You Are Seeing?

As a system administrator I would like to be able to view the license information from the command prompt

What is Expected?

  • The registered name of the license
  • The expiration date
  • The license type
  • The license count (total, not usage)
  • Anything else that might be useful

-- optionally

  • export to a json / xml format

I know this is all available in the chocolatey.license.xml file, but I think it would be usable to put this into an new choco license command, or perhaps extend the choco support command.

┆Issue is synchronized with this Gitlab issue by Unito

@corbob corbob transferred this issue from chocolatey/chocolatey-licensed-issues Sep 22, 2022
@corbob
Copy link
Member

corbob commented Sep 22, 2022

Moved this to Chocolatey CLI repository. This seems to initially be something better handled in Chocolatey CLI instead of the licensed extension. My thoughts for potential subcommands in CLI in no particular order:

  • choco license install ./path/to/file.extension - This could read in the file specified, verify it's a valid license, then create the appropriate directory structure and name it correctly
  • choco license list - Get information about the currently installed license (name, license count, license type, expiration, etc.)
  • choco license uninstall - I imagine this would just remove the license file 🤷

Chocolatey Licensed Extension could then contain an enhanced command to perform actions that don't necessarily make sense to do without the licensed extension.

@JPRuskin
Copy link
Member

JPRuskin commented Oct 4, 2022

Hey, we'd like to pick this up!

JPRuskin added a commit to JPRuskin/choco that referenced this issue Oct 4, 2022
@JPRuskin JPRuskin linked a pull request Oct 4, 2022 that will close this issue
9 tasks
JPRuskin added a commit to JPRuskin/choco that referenced this issue Oct 11, 2022
This commit introduces a new command to Chocolatey, `license`.

Currently, the functionality is limited, and it will only
display details on the current license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants