Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add yaml flag #3069

Merged
merged 1 commit into from
May 8, 2024
Merged

config: add yaml flag #3069

merged 1 commit into from
May 8, 2024

Commits on May 7, 2024

  1. config: add yaml flag

    YAML flag parses (preferably flow-style) YAML value from the command line
    or unmarshals object yaml value from the yaml config file.
    
    Example value:
    ```
    bin/skipper -foo-flag='{foo: hello, bar: [world, "1"], baz: 2, qux: {baz: 3}}'
    ```
    
    and equivalent branch in config yaml:
    ```yaml
    foo-flag:
      foo: hello
      bar:
        - world
        - "1"
      baz: 2
      qux:
        baz: 3
    ```
    
    This will be useful for #2104
    
    It is also a better alternative to manual parsing of micro-syntax like
    e.g. implemented in #2888
    
    Signed-off-by: Alexander Yastrebov <[email protected]>
    AlexanderYastrebov committed May 7, 2024
    Configuration menu
    Copy the full SHA
    174cd01 View commit details
    Browse the repository at this point in the history