javanile / yamlinc

Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.
MIT License
114 stars 22 forks source link

Inline code parser #13

Open francescobianco opened 5 years ago

francescobianco commented 5 years ago

New feature to develop is Inline code parser. This enables the possibility to parse YAML string from command-line and use $include tag to compound multiple files without the main file like this

$ yamlinc --inline '{ $import: a.yml, $import: b.yml }'

other examples

$ yamlinc --inline '{ $import: basefile.yml, version: '0.0.1-new' }'
$ yamlinc --inline 'sample:\
  node: "test"\
  $include: rest.yml'