Skip to content

[Feature request] Accept piped file paths in CLI #42

@nx10

Description

@nx10

Hi,

I’d like to request a feature for bids2table that allows the CLI to accept file paths via standard input (stdin) instead of requiring a root directory. This would make it easier to work with file paths from various sources like cloud storage or environments where direct access to the entire directory is limited.

Examples:

  1. Cloud storage:

    aws s3 ls s3://my-bids-dataset/ --recursive | awk '{print $4}' | bids2table
  2. Integration with other tools:

    find /my/data -type f -name "*.nii.gz" | bids2table
  3. From a file:

    cat bids_file_paths.txt | bids2table
  4. Limited access:

    echo "/restricted_path/sub-01/anat/sub-01_T1w.nii.gz" | bids2table

Let me know what you think!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions