Skip to content

How should internal/external commands interact in a pipeline? #935

Closed

Description

@thegedge

Organizing ideas about how internal/external commands should interact in a pipeline.

# source sink source transformation example
1 Internal Internal Identity ls | get name
2 Internal (Primitive) External Stringify primitive ls | get name | nth 0 | cat
3 Internal (Row) External Join into lines ls | get name | cat
4 Internal (Table) External ??? ls | cat
5 External Internal lines cat Cargo.toml | get 0
6 Internal Internal ($it) ??? ls | echo $it
7 Internal (Primitive) External ($it) Stringify primitive ls | get name | nth 0 | cat $it
8 Internal (Row) External ($it) Stringify row entry, one execution per row ls | get name | cat $it
9 Internal (Table) External ($it) ??? ls | cat $it
10 External Internal ($it) lines cat Cargo.toml | echo $it
  1. Working
  2. Hangs (related to open Cargo.toml | to-json | jq . hangs forever #928)
  3. Hangs (related to open Cargo.toml | to-json | jq . hangs forever #928)
  4. ???
  5. Working, but slightly different from cat ... | lines | get 0 because it includes the newline character when outputting to stdout.
  6. Working
  7. Working
  8. Working
  9. ???
  10. Working

For 6-10, the first execution that fails will stop further execution. Whether or not we should continue execution came up in #816 (but should probably address in a separate issue).

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions