Skip to content

Conversation

@gep13
Copy link
Member

@gep13 gep13 commented May 30, 2025

Description Of Changes

This commit introduces a new choco support command for Chocolatey CLI. This command already exists for Chocolatey Licensed Extension, but the decision was made to also introduce it into open-source, for consistency reasons. The output from this version of the command is different to what is shown when you have a license in play, as it points the user to the open-source resources, rather than to reach out to the support team.

Also included is some unit tests and some pester tests, to ensure that the command is working as expected.

Motivation and Context

After discussion with the support team, having the choco support command in both CLI and CLE makes a lot of sense, and will help people find the help that they need.

Testing

  1. Check out and build PR
  2. Run choco support and verify the output
  3. Run choco support -h and verify the output
  4. Run choco -h and see the support command listed
  5. Run the unit tests and verify that they complete
  6. Verify that Test-Kitchen tests complete succesfully

Operating Systems Testing

  • Windows 11

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated - this will be completed at the end of the release process
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue

Fixes #3668

Copy link
Member

@AdmiringWorm AdmiringWorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of questions regarding the message output.

@gep13 gep13 requested a review from corbob June 3, 2025 13:03
@gep13 gep13 force-pushed the issue3668 branch 3 times, most recently from c6bcc7d to 262e0d8 Compare June 4, 2025 08:09
@gep13 gep13 requested review from AdmiringWorm and corbob June 4, 2025 08:11
Copy link
Member

@AdmiringWorm AdmiringWorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@corbob corbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look good to me. I'll leave it to @AdmiringWorm or @gep13 to merge as I can't see the Test Kitchen runs to verify they all worked.

This commit introduces a new choco support command for Chocolatey CLI.
This command already exists for Chocolatey Licensed Extension, but the
decision was made to also introduce it into open-source, for
consistency reasons.  The output from this version of the command is
different to what is shown when you have a license in play, as it
points the user to the open-source resources, rather than to reach out
to the support team.

Also included is some unit tests and some pester tests, to ensure that
the command is working as expected.
@AdmiringWorm
Copy link
Member

Since everyone have approved this PR now, and the changes still looks good to me, I will get this PR merged now.

@AdmiringWorm AdmiringWorm merged commit d31ed02 into chocolatey:develop Jun 5, 2025
5 checks passed
@gep13 gep13 deleted the issue3668 branch June 5, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add choco support command

3 participants