syntasso / kratix-cli

CLI-based tool to build Promises
Apache License 2.0
2 stars 2 forks source link

feat: allow deps to be added as workflows #22

Closed kirederik closed 4 months ago

kirederik commented 4 months ago

this commit introduces a new flag to the update dependencies command: --as-workflow.

when set, the dependencies will be added to the promise as a workflow, instead of copying them all to the promise spec.dependencies field.

updating dependencies with --as-workflow requires --image to be set as well.

if there's a dependencies.yaml file in the working directory, it will be removed; if there's a promise.yaml file, the contents of spec.dependencies will be wiped out -- we can change this behavior if needed.