ansible/vscode-ansible

Add option to prefix all shell commands the plugin executes

Aperta

#429 aperta il 13 feb 2022

 (0 commenti) (7 reazioni) (0 assegnatari)TypeScript (146 fork)github user discovery
good first issue

Metriche repository

Star
 (481 stelle)
Metriche merge PR
 (Merge medio 1g 18h) (44 PR mergiate in 30 g)

Descrizione

Problem

This plugin makes high use of executing shell commands, and has a few config options for these. But not all commands used by the plugin are covered, for example the ansible-playbook, ansible-config command and some more.

Sometimes you just need to add the same prefix to all of the commands, for example when using VS Code as a Flatpak, where you want to prefix every command with flatpak-spawn --host <command>, e.g. flatpak-spawn --host ansible-lint (which is configurable, but this does not work for all the other commands executed by the plugin).

Solution

Add an option to prefix all commands with a custom prefix, or at least something that makes it possible to execute all commands with flatpak-spawn --host at the front.

Alternatives

No response

Additional context

No response

Guida contributor