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

Combine differents configuration endpoint in the same file #97

Open
JavierPozoDelevoper opened this issue Oct 3, 2022 · 2 comments
Open

Comments

@JavierPozoDelevoper
Copy link

Hi, i want organizate my stubb folder like this:

  • stubbs
    • data
    • enpoints

This is to be able to separate the endpoints from the stubby depending on the different modules and not just have a huge file with all the endpoints.

I have tried to use an additional package that to combine the .yml files but it has not worked for me. This is what i used:

  • Package: merge-yaml
  • Cli command: merge-yaml -i src/stubbs/endpoints/*.yaml -o endpoints.yaml && stubby -s 1500 -d endpoints.yaml

Does anyone have a similar structure that works for them or is there a way to load a list of config files?

Thx

@igormarti
Copy link

I've also tried it. I want the structure in separate YAML or JSON files, but it's not working.

@mrak
Copy link
Owner

mrak commented May 15, 2024

if the YAML files don't have --- in them, you could probably just use cat:

stubby -s 1500 -d <(cat src/stubbs/endpoints/*.yaml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants