osbuild / otk

A proof of concept for a new `osbuild-mpp`.
Apache License 2.0
3 stars 9 forks source link

RFC: `otk.op.if` #18

Open supakeen opened 2 months ago

supakeen commented 2 months ago

Current users of osbuild-mpp use conditional code often. #17 might resolve some of these issues but some use cases would persist

This isn't a full RFC yet, it's work in progress as I need a bit more thinking about if and how to do this nicely. However, some discussion and ideas are welcome!

supakeen commented 1 month ago

During discussions yesterday we will be having conditionals. We'll likely start with:

otk.op.if_set:
  what: ${some_variable}
  then:
    # A block

Without a test yet.