ansible/vscode-ansible

Add option to prefix all shell commands the plugin executes

Open

#429 opened on Feb 13, 2022

 (0 comments) (7 reactions) (0 assignees)TypeScript (146 forks)github user discovery
good first issue

Repository metrics

Stars
 (481 stars)
PR merge metrics
 (Avg merge 1d 18h) (44 merged PRs in 30d)

Description

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

Contributor guide