-
I have Symfony YAML configuration file: services:
_defaults:
autowire: true
autoconfigure: true
public: false
App\:
resource: '../src/*'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
App\Controller\:
resource: '../src/Controller'
tags: ['controller.service_arguments'] I would like to refactor the
The only selector that worked is using a wildcard, but this could also select
yq version 4.27.2 |
Beta Was this translation helpful? Give feedback.
Answered by
buffcode
Aug 22, 2022
Replies: 1 comment
-
Just found it in the docs: https://mikefarah.gitbook.io/yq/usage/tips-and-tricks#special-characters-in-strings
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
buffcode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just found it in the docs: https://mikefarah.gitbook.io/yq/usage/tips-and-tricks#special-characters-in-strings
key="App\\" yq '.services[strenv(key)]' test.yaml
works as intended