Skip to content

CLI: auto-load credentials, collections and workspace #1233

@josephjclark

Description

@josephjclark

Right now, when you execute with a workflow name:

openfn my-workflow

We run through the Workspace defined in openfn.yaml, and auto-load collections and credentials.yaml.

This is issue is to extend this logic:

  1. Walk up through parent dirs until we find a workflow.yaml, so that I can run a workflow from inside a workspace. Maybe for example I want to cd into ./workflows/my-workflow and run from there (for easier pathing to supporting state files, for example). We should be able to automatically load the parent workspace in this case.
  2. Whenever we're running inside a workspace folder -that is, if we find an openfn.yaml in the directory structure - go ahead and autoload all settings from it
  3. Passing --no-workspace should disable this autoload behaviour and stop the CLI finding the openfn.yaml wrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    DevX Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions