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

(#357) Add Export Command #1825

Merged
merged 4 commits into from
May 6, 2021
Merged

(#357) Add Export Command #1825

merged 4 commits into from
May 6, 2021

Commits on May 6, 2021

  1. (maint) Correct whitespace

    gep13 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    9d4dd65 View commit details
    Browse the repository at this point in the history
  2. (chocolatey#357) Change modifier for method

    So that the method to get_all_installed_packages can be consumed from
    elsewhere in the codebase.  This meant extending the interface for
    INugetService to include this method as well, otherwise, a concrete
    reference to an instance of NuGetService would be required, which is not
    available.
    gep13 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    a0c679a View commit details
    Browse the repository at this point in the history
  3. (chocolatey#357) Add Export Command

    This will allow the creation of a packages.config file of all the
    currently installed packages on the machine.  Usage of this command
    will be:
    
    choco export -o c:/temp/packages.config --include-version-numbers
    
    This command is particularly useful when re-building a machine.  i.e.
    First export all packages currently installed on machine, and then
    replay this packages.config via choco install packages.config on new
    machine.
    gep13 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    ce6ccb8 View commit details
    Browse the repository at this point in the history
  4. (chocolatey#357) Add unit tests

    To cover the new functionality of the export command. This includes
    verifying the option sets, what methods are called under certain
    circumstances, etc.
    gep13 committed May 6, 2021
    Configuration menu
    Copy the full SHA
    65ff904 View commit details
    Browse the repository at this point in the history