Skip to content

CLI: ensure consistent path handling #1049

Open

Description

@josephjclark

The CLI needs a single helper util function which will resolve paths in a consistent way.

When the user says openfn job.js, what is job.js relative to? The current working dir of course. But any path resolution needs to be consistent about that. We also need to support stuff like /job.js and ~./job.js.

It's not super hard to do this, and most of the CLI does it in a consistent way. It's what baseDir is sort of supposed to sort out.

But there isn't a single helper function. Ideally users contributing new commands can just do resolvePath(options, path) and getCommandRoot() or something, and we have a single function which works it all out without needing much thought

Activity

  1. moved this from New Issues to DevX Backlog in Coreon Nov 4, 2025
  2. moved this from DevX Backlog to Product Backlog in Coreon Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions