Skip to content

win_chocolatey / win_chocolatey_facts - support choco cache #134

@vexx32

Description

@vexx32

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my request.

Is Your Feature Request Related To A Problem? Please describe.

Currently, there is no way to interact with the choco cache command that was introduced in Chocolatey CLI v2.1.0.

Describe The Solution. Why is it needed?

  • win_chocolatey
    • Support the --skip-http-cache global option
      • Add a skip_http_cache (or maybe skip_cache / ignore_cache) option
    • Support the choco cache remove command
      • Add an option purge_cache which defaults to none / nil and lets the user select all or expired
  • win_chocolatey_facts
    • Support using the choco cache list command and returning the cache information as part of the facts returned

Additional Context

The choco cache list command currently doesn't support --limit-output, so we will have a hard time making a lot of sense of the output until that is addressed:

Related Issues

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0 - TriagingIssue is accepted, but a milestone has yet to be added for the issue.EnhancementIssues that introduce new functionality to the project, or enhances/updates existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions