lightning
lightning copied to clipboard
Allow users to specify if they want relative paths when pulling from OpenFn
OpenFn gives users the flexibility to reference job code using relative paths in the project spec.yaml or to write the job code inline in the body section of the Spec. This preference is preserved when a user updates a local/GH version of their Spec by running the CLI pull command but if there are new jobs/workflows, the code will be written inline.
It would be great to allow users to specify if they want their project.yaml to adopt a relative path approach, this way, we can export the jobs in a workflows/workflow_name
directory keeping all the jobs associated with each workflow in the project.
We have seen situation where a project.yaml file adopts both systems (inline and relative path) and the user feels like some job code files are missing or weren't synced. Users should be able to specify if they want job code inline to relative.