# scoop settings

Allow managing [scoop](https://scoop.sh).

{% hint style="warning" %}
**scoop** is only available for Windows.
{% endhint %}

## pkgs

`pkgs` allow installing some scoop packages (cf [github](https://github.com/lukesampson/scoop)).

You need to specify the name of the packages to install.

A simple example, in the [vscode-anywhere.sls](https://gigi206.gitbook.io/vscode-anywhere/structure/conf/saltstack/pillar#vscode-anywhere-sls) file to ask to install the [scoop python 3.8.2 package](https://chocolatey.org/packages/python/3.8.2) in the `python3`module:

```yaml
vscode-anywhere:
    python3:
        enabled: True
        scoop:
            pkgs:
                opts:
                    global: {}
                    install: {}
                    update: {}
                    uninstall: {}
                python:
                    enabled: True
                    opts:
                        global: {}
                        install:
                            version: '3.8.2'
                        update: {}
                        uninstall: {}
```

### enabled

`True` to `enable`, `False` to skip (default to `False`).

### opts

`opts` is not mandatory but allows to pass extra args.

Extra args can be arguments described in the [Saltstack scoop states](https://docs.saltstack.com/en/master/ref/states/all/salt.states.chocolatey.html) or can be [global Saltstack arguments](https://docs.saltstack.com/en/latest/ref/states/requisites.html).

#### Global packages settings

* `scoop:pkgs:opts:global`: allow  passing arguments **to all scoop packages** when **installing**, **updating**, or **uninstalling** a package
* &#x20;`scoop:pkgs:opts:install`: allow passing arguments **to all scoop packages** when **installing** a package (cf [pkg\_installed](https://github.com/gigi206/VSCode-Anywhere/blob/V2/_states/scoop.py) function)
* `scoop:pkgs:opts:update`: allow passing arguments **to all scoop packages** when **updating** a package (cf [pkg\_latest](https://github.com/gigi206/VSCode-Anywhere/blob/V2/_states/scoop.py) function)
* `scoop:pkgs:opts:uninstall`: allow passing arguments **to all scoop packages** when **uninstalling** a package (cf [pkg\_removed](https://github.com/gigi206/VSCode-Anywhere/blob/V2/_states/scoop.py) function)

#### Specific packages settings

* `scoop:pkgs:<mypkg>:opts:global`: allow passing arguments **to** `<mypkg>` **scoop package** when **installing**, **updating**, or **uninstalling** the package
* `scoop:pkgs:<mypkg>:opts:install`: allow passing arguments **to** `<mypkg>` **scoop packages** when **installing** the package (cf [pkg\_installed](https://github.com/gigi206/VSCode-Anywhere/blob/V2/_states/scoop.py) function)
* `scoop:pkgs:<mypkg>:opts:update`: allow passing arguments **to** `<mypkg>` **scoop packages** when **updating** the package (cf [pkg\_latest](https://github.com/gigi206/VSCode-Anywhere/blob/V2/_states/scoop.py) function)
* `scoop:pkgs:<mypkg>:opts:uninstall`: allow passing arguments **to** `<mypkg>` **scoop packages** when **uninstalling** the package (cf [pkg\_removed](https://github.com/gigi206/VSCode-Anywhere/blob/V2/_states/scoop.py) function)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gigi206.gitbook.io/vscode-anywhere/modules/settings/global/scoop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
