stephen-bunn/prompt-toolkit-action-completer

Pipelines support

Opened this issue · 0 comments

Summary

Pipelines provide powerful operations such as passing execution results and executing multiple commands in a single code.
They comes primarily after the action, but checking the pipeline with each function is tedious and inefficient.

Potential Implementations

Split the strings with pipeline characters such as "&&" and "|", group the string into an object array with the pipeline type, and execute them in order from the beginning.

Risks or Caveats

  1. In some cases, methods needs to recognize the pipeline character as an argument
  2. Depending on the return type of the function, it can be difficult to implement "|" (such as None)

Issue Checklist

  • I checked for duplicate issues 👍
  • I made sure to fill out the potential implementations 😉
  • I made sure to document the risks and caveats of my request ✌️
  • I made sure to drink a glass of water 🥛

Thanks! ❤️