UiPath / uipathcli

Command line interface to simplify, script and automate API calls for UiPath services (preview)
MIT License
61 stars 5 forks source link

Use dash to reference standard input #78

Closed thschmitt closed 1 year ago

thschmitt commented 1 year ago

Removed error-prone logic to always check if there is data on standard input which can cause the uipathcli to hang in some cases.

Instead, the user can load the request body data from disk or standard input by using the --file parameter.

In order to tell the uipathci to read standard input and pass it as the request body, the user can provide a dash as the file argument --file -

Example: Reading file from disk

uipath du digitizer digitize --file documents/invoice.pdf

Example: Reading from standard input

echo "hello world" | uipath du storage upload --object-key "my-data" --file -