cChoco | Community resource to manage Chocolatey | Command Line Interface library

 by   chocolatey PowerShell Version: v2.5.0 License: Apache-2.0

kandi X-RAY | cChoco Summary

kandi X-RAY | cChoco Summary

cChoco is a PowerShell library typically used in Utilities, Command Line Interface applications. cChoco has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This resource is aimed at getting and installing packages using Chocolatey. The resource takes the name of the package and will then install that package. See ExampleConfig.ps1 for example usage. See list of packages here:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              cChoco has a low active ecosystem.
              It has 114 star(s) with 75 fork(s). There are 22 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 27 open issues and 70 have been closed. On average issues are closed in 206 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of cChoco is v2.5.0

            kandi-Quality Quality

              cChoco has no bugs reported.

            kandi-Security Security

              cChoco has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              cChoco is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              cChoco releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cChoco
            Get all kandi verified functions for this library.

            cChoco Key Features

            No Key Features are available at this moment for cChoco.

            cChoco Examples and Code Snippets

            No Code Snippets are available at this moment for cChoco.

            Community Discussions

            QUESTION

            Cannot cache or pass state between executions of Powershell DSC resource
            Asked 2017-Aug-28 at 16:46

            I am working on a DSC resource (cChoco) that currently depends on an outside utility (choco list) to gather the information needed to Test-TargetResource. My problem is that the utility I have to call is very slow, and because cChoco installs many programs it currently has to pull the full list of installed software for each instance in the DSC MOF file.

            The only way I have been able to come up with to work around this issue, is to pull the list of installed applications and write it to disk, and then just read it back from the file for subsequent runs, however this feels like a bit of a kluge to me. Are there any generally accepted design patterns for passing state between DSC resources or instances of the same resource other than just writing to a file? It seems like the limitations imposed on PowerShell by the DSC/Mof implementation requires a functional approach to designing resources so maybe if there are no generally accepted "right" ways to accomplish this in DSC, there would be something I could borrow from a more functional programing language?

            If more background would be helpful check out https://github.com/chocolatey/cChoco/issues/90.

            ...

            ANSWER

            Answered 2017-Aug-28 at 16:46

            Data sharing between resources (and instances of the same resource) is not possible in DSC. This is an open ask: https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/13399734-returning-information-from-dsc-resource-to-another

            Source https://stackoverflow.com/questions/45918046

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install cChoco

            AppVeyor is used to package up the resource and publish to the PowerShell Gallery (on successful build from a newly pushed tag only).
            Test the resources using 'xDSCResourceDesigner'
            Verify best practises using 'PSScriptAnalyzer'
            Update the version in the manifest file
            Publish the module to the PowerShell gallery
            Check in updated manifest file to GitHub
            Update ModuleVersion in cChoco.psd1 - use major.minor.patch.0;
            Update version in appveyor.yml - use major.minor.patch.{build};
            Merge development branch to master - git checkout master, git merge development, git push origin;
            Tag master with new version - git tag v<major.minor.patch>;
            Push changes with tag git push origin v<major.minor.patch>

            Support

            This resource is aimed at getting and installing packages using Chocolatey. The resource takes the name of the package and will then install that package. See ExampleConfig.ps1 for example usage. See list of packages here: https://chocolatey.org/packages.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/chocolatey/cChoco.git

          • CLI

            gh repo clone chocolatey/cChoco

          • sshUrl

            git@github.com:chocolatey/cChoco.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by chocolatey

            choco

            by chocolateyC#

            ChocolateyGUI

            by chocolateyC#

            boxstarter

            by chocolateyPowerShell

            chocolatey.org

            by chocolateyC#

            docs

            by chocolateyHTML